copy artifacts - pick from two upstream jobs

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

copy artifacts - pick from two upstream jobs

Chris Withers
Hi All,

I have two upstream jobs which can trigger a particular build job.
I want that build job to copy artifacts from the build job that
triggered it to run, which could be either of the two; they both produce
the same artifacts, just by different means.

How can I achieve that?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: copy artifacts - pick from two upstream jobs

Fred G
Hi Chris,

You can use the "Upstream build that triggered this job"-functionality of the Copy-Artifacts-Plugin.
Unfortunately you still need to specify the name of the triggering job. I will try to fix this in an upcoming version.
Until then you need to specify two "Copy artifacts from another project" build steps (one for each triggering project) and mark them as optional.

Hth,

Fred
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: copy artifacts - pick from two upstream jobs

Chris Withers
Hi Fred,

On 21/02/2012 15:23, Fred G wrote:
> You can use the "Upstream build that triggered this job"-functionality
> of the Copy-Artifacts-Plugin.
> Unfortunately you still need to specify the name of the triggering job.
> I will try to fix this in an upcoming version.

That would be great :-)

> Until then you need to specify two "Copy artifacts from another project"
> build steps (one for each triggering project) and mark them as optional.

This works just fine!

thanks,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: copy artifacts - pick from two upstream jobs

Nicky Ramone
In reply to this post by Fred G
Where is that "Upstream build that triggered this job"-functionality of the Copy-Artifacts-Plugin  ?

On Tue, Feb 21, 2012 at 12:23 PM, Fred G <[hidden email]> wrote:
Hi Chris,

You can use the "Upstream build that triggered this job"-functionality of the Copy-Artifacts-Plugin.
Unfortunately you still need to specify the name of the triggering job. I will try to fix this in an upcoming version.
Until then you need to specify two "Copy artifacts from another project" build steps (one for each triggering project) and mark them as optional.

Hth,

Fred

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: copy artifacts - pick from two upstream jobs

Nicky Ramone
Nevermind, I found it.

On Thu, Mar 22, 2012 at 11:17 AM, Nicky Ramone <[hidden email]> wrote:
Where is that "Upstream build that triggered this job"-functionality of the Copy-Artifacts-Plugin  ?


On Tue, Feb 21, 2012 at 12:23 PM, Fred G <[hidden email]> wrote:
Hi Chris,

You can use the "Upstream build that triggered this job"-functionality of the Copy-Artifacts-Plugin.
Unfortunately you still need to specify the name of the triggering job. I will try to fix this in an upcoming version.
Until then you need to specify two "Copy artifacts from another project" build steps (one for each triggering project) and mark them as optional.

Hth,

Fred


Loading...