Reputation: 765
I am trying to perform the below:
Is there a way to do #5 here? I did look around but didnt find anything specific. Would CopyArtifact plugin help? If yes, what would be the syntax for pipeline? And how to specify the Identifier of the job which was invoked from Job1 instead of getting "LastSuccessfulBuild" ?
Thanks in advance for looking at this question.
Upvotes: 0
Views: 2157
Reputation: 1193
You could use the copyArtifact step like this:
step([
$class: 'CopyArtifact',
filter: 'myArtifact',
projectName: 'Job2',
selector: [$class: 'MultiJobBuildSelector']
])
You can see the detailed syntax in you Jenkins snippet generator: http://my.Jenkins.com/pipeline-syntax/
Upvotes: 1