ikedam commented on Bug JENKINS-28184

Could not reproduce that in my environment.
Please report detailed steps to reproduce the problem.

Steps I tested:

  1. Install Jenkins 1.593.
  2. Install Copyartifact 1.35.
  3. Create a freestype project "upstream"
    • Add "Execute Shell" in "Build"
      echo ${BUILD_ID} ${BUILD_NUMBER} > artifact_upstream.txt
      
    • Add "Archive the artifacts" in "Post-build Actions"
      • Files to archive: artifact_upstream.txt
      • Check "Fingerprint all archived artifacts" (Important!)
    • Add "Build other projects" in "Post-build Actions"
      • Project to build: downstream
        • Don't mind even if you will be warned that "No such project 'downstream'". You'll create that in followings.
  4. Create a freestype project "downstream"
    • Add "Copy artifacts from another project" in "Build"
      • Project name: upstream
      • Which build: Upstream build that triggered this job
      • Artifacts to copy: artifact.txt
      • Check "Fingerprint Artifacts" (Important!)
    • Add "Execute Shell" in "Build"
      echo ${BUILD_ID} ${BUILD_NUMBER} > artifact_downstream.txt
      
    • Add "Archive the artifacts" in "Post-build Actions"
      • Files to archive: artifact_downstream.txt
  5. Run builds of "upstream" twice.
    • Following relations are created:
      • "upstream #1" -> "downstream #1"
      • "upstream #2" -> "downstream #2"
    • Go to "See Fingerprints" of "upstream #1", "more details" of "artifact_upstram.txt" and see that "downstream #1" is listed there.
  6. Create a freestyle project "copier"
    • Add "Copy artifacts from another project" in "Build"
      • Project name: downstream
      • Which build: Downstream build of
        • Upstream Project Name: "upstream"
        • Upstream Build Number: 1
      • Artifacts to copy: artifact_downstream.txt
    • Add "Execute Shell" in "Build"
      cat artifact_downstream.txt
      
  7. Run a build of "copier"



Result:

  • You will see a line like this in the log of "copier #1"
    2015-05-03_10-42-06 1
    
    • This means the build of "downstream" from which an artifact is copied (the time string will be changed in your environment). It copies from "downstream #1" as expected.
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