Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-15033

SCP task throws NPE after the build plan moved to another project or deleted

    XMLWordPrintable

Details

    Description

      SCP task in deployment project's environment throws NPE after the build plan moved to another project or get deleted.

      java.lang.NullPointerException
      at com.atlassian.bamboo.plugins.scp.ScpTaskConfigurator.addArtifactsFromDownloaderTasks(ScpTaskConfigurator.java:247)
      at com.atlassian.bamboo.plugins.scp.ScpTaskConfigurator.addArtifactData(ScpTaskConfigurator.java:218)
      at com.atlassian.bamboo.plugins.scp.ScpTaskConfigurator.populateContextForEdit(ScpTaskConfigurator.java:187)
      at com.atlassian.bamboo.ww2.actions.build.admin.config.task.TaskUIConfigBean.prepareEditHtml(TaskUIConfigBean.java:124)
      

      Cause

      This is due to the new plan is having different artifact(different ID). Artifact Download task is still pointing to old artifact from previous plan thus the SCP task can't find the artifact.

      It seems that Artifact Download task failed to get updated with a new set of artifacts from the new plan.

      Workaround

      Edit the environment's task. Delete the current Artifact Download task as well as the SCP task and recreate them accordingly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mfahd Fahd
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: