IOW, both Pipeline1 and Pipeline2 jobs have this

String buildNum = <spawned job build number>
copyArtifacts projectName: 'Utilities/Playground/ECS-dependecy-checker',
              fingerprintArtifacts: true,
              filter: 'SomeFile.yml'
              selector: specific(buildNumber)

What do I put in the <spawned job build number> ?

thanks,
Chris
On Wednesday, September 16, 2020 at 4:37:48 PM UTC-4 [email protected] wrote:

> If I spawn a job in jenkins, like this
>
> Pipeline1:
> build job: "CommonPipeline",
>       wait: true
>
> You see this in the Jenkins console for Pipeline1
>
> Scheduling project: CommonPipeline
> Starting building: Starting build CommonPipeline #100
>
> Now if I start another pipeline at the same time Pipeline1 is running
>
> Pipeline2:
> build job: "CommonPipeline",
>       wait: true
>
> You see this in the Jenkins console for Pipeline2
>
> Scheduling project: CommonPipeline
> Starting building: Starting build CommonPipeline #101
>
> In each Pipeline1 and Pipeline2 jobs, how can I get the corresponding 
> build numbers that they spawned for CommonPipeline? I'm asking because 
> CommonPipeline archives artifacts for Pipeline1 and Pipeline2, and I need 
> to get the artifact for their corresponding spawned CommonPipeline job#. Is 
> this possible?
>
> Hope that makes sense.
>
> Thanks,
> Chris
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/84ff3365-dc81-4cfe-bc78-53b220387e05n%40googlegroups.com.

Reply via email to