Copy artifact plugin: How to get access to an artifact name

136 views
Skip to first unread message

Alex Domoradov

unread,
Apr 8, 2016, 11:44:28 AM4/8/16
to Jenkins Users
Hello,

I'm using Copy Artifact Plugin v1.37 with Jenkins-1.648 on CentOS-6.7. I've configured 1 upstream job and 2 downstreams. The upstream job produces one war file which I used in the downstream jobs.

Is it possible in the downstream job to get an artifact name via env variable? Something like ${ARTIFACT}. I need the name of artifact to specify it in a send build artifacts publish over ssh action.

Thanks in advance

Victor Martinez

unread,
Apr 9, 2016, 1:05:43 PM4/9/16
to Jenkins Users
Off the top off my head, you can generate a properties (key=value) file a as part of the parentstream build and use it as build parameters for those downstream jobs
Cheers

Alex Domoradov

unread,
Apr 11, 2016, 3:42:34 AM4/11/16
to Jenkins Users
Yes, currently I'm using exactly such scheme as you've described. But i thought there should be built-in feature to get such information

Alex Domoradov

unread,
Apr 11, 2016, 6:13:32 AM4/11/16
to Jenkins Users
But I have encountered with one annoying behavior. I have specified 2 jobs in the Projects to build field and these jobs executes one by one not in parallel.

http://i.imgur.com/owhDpUO.png

Is it possible to run those jobs in parallel without additional plugins? If it is not possible, what plugin do I need to use to achieve such behavior?


Reply all
Reply to author
Forward
0 new messages