Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14408

SCP Copy Task copies old files / files from previous builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Low
    • None
    • 5.3, 5.7.2
    • SCP and SSH tasks
    • None

    Description

      I have an issue with a scp copy job copying artifacts to a remote system. It seems to work correctly (as in build stage creates a valid artifact, deploy stage references that artifact) but executes the actual copying of the artifact twice (one with the current version of the artifact, once with an older version of the artifact). This results in my freshly compiled and packaged application being replaced with a version from a previous build, which is a problem.)

      Strangely the artifact-link is correctly offered in the bamboo webapp, It also looks fine from the file structure view of the build-stage, just when the deploy-stage begins it seems to copy the current and an old version of the artifact to the working directory and then proceeds to scp both files to the remote location.

      Here is the relevant part of the log:

      simple	24-Mar-2014 11:22:56	Starting task 'Copy WAR File to Tomcat' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
      simple	24-Mar-2014 11:22:56	Connecting to host.domain.de on port: 22
      simple	24-Mar-2014 11:22:56	Uploading 'D:\bamboo-home\xml-data\build-dir\260997122\PROJECT-TB-DEP\SW-0.6.5-SNAPSHOT.war' to '/home/aemat/webapps/SW.war'...
      simple	24-Mar-2014 11:22:58	'D:\bamboo-home\xml-data\build-dir\260997122\PROJECT-TB-DEP\SW-0.6.5-SNAPSHOT.war' was uploaded successfully.
      simple	24-Mar-2014 11:22:58	Uploading 'D:\bamboo-home\xml-data\build-dir\260997122\PROJECT-TB-DEP\SW-0.6.4-SNAPSHOT.war' to '/home/aemat/webapps/SW.war'...
      simple	24-Mar-2014 11:22:59	'D:\bamboo-home\xml-data\build-dir\260997122\PROJECT-TB-DEP\SW-0.6.4-SNAPSHOT.war' was uploaded successfully.
      simple	24-Mar-2014 11:22:59	Finished task 'Copy WAR File to Tomcat'
      

      As you can see there are two files beeing copied to the remote server: the first file is the current product of the build, the second one is the "old", deprecated file.

      please advise, what can i do, where can i look?

      Attachments

        Activity

          People

            Unassigned Unassigned
            be03ce867bc0 Sebastian Hilder
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: