Bruce Edge edited a comment on Bug JENKINS-25155

I can confirm the same problem.
I downgraded only the copy artifact plugin from 1.32 to 1.31 and the problem goes away.

FWIW here's my stack trace:

 
Promoting Reader-Android-build-develop #546
FATAL: null
java.lang.NullPointerException
	at hudson.plugins.copyartifact.CopyArtifact$EnvAction.add(CopyArtifact.java:512)
	at hudson.plugins.copyartifact.CopyArtifact$EnvAction.access$500(CopyArtifact.java:502)
	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:296)
	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:280)
	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:222)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
	at hudson.model.Run.execute(Run.java:1754)
	at hudson.model.Run.run(Run.java:1692)
	at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:172)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)

and my promotion config:

<buildSteps>
    <hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]">
      <project>${PROMOTED_JOB_NAME}</project>
      <filter>**/*release*.apk,**/*-debug-unaligned*.apk</filter>
      <target>/u0/releases/Reader-Android/${GIT_BRANCH}/QA/${PROMOTED_NUMBER}</target>
      <selector class="hudson.plugins.copyartifact.PermalinkBuildSelector">
        <id>QA</id>
      </selector>
      <flatten>true</flatten>
      <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts>
    </hudson.plugins.copyartifact.CopyArtifact>
    <hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]">
      <project>${PROMOTED_JOB_NAME}</project>
      <filter>**/build/outputs/proguard/**</filter>
      <target>/u0/releases/Reader-Android/${GIT_BRANCH}/QA/${PROMOTED_NUMBER}</target>
      <selector class="hudson.plugins.copyartifact.PermalinkBuildSelector">
        <id>QA</id>
      </selector>
      <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts>
    </hudson.plugins.copyartifact.CopyArtifact>
    <hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]">
      <project>${PROMOTED_JOB_NAME}</project>
      <filter>**/src/androidTest/**,**/lib/**,**/build.gradle</filter>
      <target>/u0/releases/Reader-Android/${GIT_BRANCH}/QA/${PROMOTED_NUMBER}</target>
      <selector class="hudson.plugins.copyartifact.PermalinkBuildSelector">
        <id>QA</id>
      </selector>
      <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts>
    </hudson.plugins.copyartifact.CopyArtifact>
    <hudson.tasks.Shell>
      <command>git push --tag || true</command>
    </hudson.tasks.Shell>
  </buildSteps>
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to