How does the copy artifact plugin determine upstream job with Global Setting?

134 views
Skip to first unread message

Eric Wood

unread,
Feb 3, 2015, 3:37:06 PM2/3/15
to Jenkinsci-users
I have a job that copies artifacts from an upstream job.  The job setting in the build steps says:

    Copy Artifact from another project: <upstream job name>
    Which Build: Upstream build that triggered this job

The advanced settings say:

    Which for multiple upstream: Use global setting

This is confirmed by looking at the job's config.xml:
        <hudson.plugins.copyartifact.CopyArtifact plugin="copyar...@1.31">
          <project>TMG-1.0-qa1</project>
          <filter>vr/DeploymentPackage.zip, vr/build-std.xml</filter>
          <target></target>
          <excludes></excludes>
          <selector class="hudson.plugins.copyartifact.TriggeredBuildSelector">
            <upstreamFilterStrategy>UseGlobalSetting</upstreamFilterStrategy>
          </selector>

I'm using the build pipeline plugin so the downstream jobs are started from the pipeline view manually.  The first time I ran the job it pulled the artifact from the upstream job correctly. I re-ran the job and it fails with the message:

    Unable to find a build for artifact copy from: TMG-1.0-qa1
    Build step 'Copy artifacts from another project' marked build as failure

My assumption was that it would still be able to pull from the upstream job.  What does Global Setting actually mean and is there a way to be able to re-run the job so I can pull the artifacts from the same upstream job?



Reply all
Reply to author
Forward
0 new messages