ikedam commented on Bug JENKINS-21219

As long as I tested, it seems work.

project with artifacts to copy project copied artifacts a set environment variable Notes
/folderA/projectSrc /folderA/projectDest COPYARTIFACT_BUILD_NUMBER_PROJECTSRC  
/folderA/projectSrc /folderB/projectDest COPYARTIFACT_BUILD_NUMBER__FOLDERA_PROJECTSRC ../folderA/projectSrc
/projectSrc /folderA/projectDest COPYARTIFACT_BUILD_NUMBER__FOLDERA_PROJECTSRC ../projectSrc
/projectSrc /folderA/folderB/projectDest COPYARTIFACT_BUILD_NUMBER__FOLDERA_PROJECTSRC ../../projectSrc
/folderA/projectSrc projectDest COPYARTIFACT_BUILD_NUMBER_FOLDERA_PROJECTSRC folderA/projectSrc

As I do not use Jenkins Enterprise (and folder-plugin), the only way to test reproduction is writing test codes...
See following codes what I tested if you'd like to see Java codes.
https://github.com/jenkinsci/copyartifact-plugin/pull/31

I thinks your problem is one of followings:

  • COPYARTIFACT_BUILD_NUMBER_* is set in your environment even with CopyArtifact plugin > 1.27, but its exact name differs from that in CopyArtifact plugin <= 1.28.
    • In fact, they should differ for folder support introcuded in CopyArtifact 1.28.
  • Your problem happens only combined with folder-plugin (Does not reproduce with MockFolder which is available for testing purpose).
  • Your problem happens only on Jenkins 1.544.

Would you dump all the environment variables available after copying artifacts?
That can be done with executing export in Execute shell after Copy artifacts from another project.

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/groups/opt_out.

Reply via email to