Access artifacts of upstream project in project chain

29 views
Skip to first unread message

Tom Deseyn

unread,
May 20, 2016, 10:39:36 PM5/20/16
to Jenkins Users
Hi,

I configured a Jenkins project B to run when project A completes successfully. In project B I want to use some artifacts created by A, so I need some information like the buildnumber. I haven't found any documentation on how to achieve this, so I put the question on stack overflow: http://stackoverflow.com/questions/37349380/get-build-number-of-triggering-project-in-jenkins.

So far, the only answer I got involved changing project A in some way to make the information available for B. I find it strange there doesn't seem to be a way to set this up that project A doesn't have to be aware there are downstream projects.

Is there an option to do this? If there isn't, does the feature make sense?

Wkr,

Tom

Victor Martinez

unread,
May 21, 2016, 4:06:34 AM5/21/16
to Jenkins Users

Tom Deseyn

unread,
May 21, 2016, 4:44:50 AM5/21/16
to jenkins...@googlegroups.com

Yes, that is what I use,  but I don't know  how to pass it the upstream build number, hence my question.

Tom

Op 21-mei-2016 10:06 schreef "Victor Martinez" <victormar...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/FrHO7EMqYQo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/be60c249-86ba-4f92-9f1f-2cecc5e98231%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

felix schwitzer

unread,
Jun 1, 2016, 3:11:17 PM6/1/16
to jenkins...@googlegroups.com
Copy artifact has an option "which build" and one is something like "upstream project that triggered the build"

Hope this is what you are looking for
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAErTmiOUd_q%3DVKwCpKDuEFfL2uW%3DUVoUG0riL%2BT7ii0ga-3dTA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages