Re: How to "link" a particular job with the promotion process without physically copying the artifacts

2013-07-17 Thread Marcin Zajączkowski

On 2013-07-15 11:58, John Vacz wrote:

Am 10.07.2013 16:24, schrieb Marcin Zajączkowski:

Hi,

I'm currently playing with Promoted Build plugin in the pipeline
managed by Build Flow plugin.

In a simplified form I have three jobs (called from the master job
using Build Flow plugin):
- a normal build of a project - job B
- a deploy WAR artifact to a remote Tomcat - job D
- a smoke testing runs against a remote Tomcat (with deployed app) -
job S

I would like to promote a WAR built in a B job when it passes a smoke
testing (S).

The issue is that there is no relationship between B and other jobs
(they are triggered through a pipeline with a concrete B build
specified as a parameter). D uses artifacts from B (by Copy artifacts
plugin), but S not. I could copy artifacts from B or D to S, but it is
very artificial - I don't need them (and have performance drawbacks).
I could also try to write some Groovy code similar to the one used in
FingerprintingCopyMethod in Copy Artifacts plugin.



I dont think it's very "artificial", acutally it would be helpful if you
know which version exactly has Job S tested. We generate a metadata file
in job B and copy this artifact as "identifier" to all related jobs, so
we can identify which job is doing something with which build.


Thanks guys for your replies. Adding a small file with some kind of 
metadata looks much better for me than copying the whole WAR.


Marcin





What is the easiest way to tell Jenkins (Promoted Build plugin) that
given artifact (fingerprint) is used by a specific build?

Marcin





--
http://blog.solidsoft.info/ - Solid Soft - Working code is not enough


--
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to "link" a particular job with the promotion process without physically copying the artifacts

2013-07-15 Thread John Vacz

Am 10.07.2013 16:24, schrieb Marcin Zajączkowski:

Hi,

I'm currently playing with Promoted Build plugin in the pipeline 
managed by Build Flow plugin.


In a simplified form I have three jobs (called from the master job 
using Build Flow plugin):

- a normal build of a project - job B
- a deploy WAR artifact to a remote Tomcat - job D
- a smoke testing runs against a remote Tomcat (with deployed app) - 
job S


I would like to promote a WAR built in a B job when it passes a smoke 
testing (S).


The issue is that there is no relationship between B and other jobs 
(they are triggered through a pipeline with a concrete B build 
specified as a parameter). D uses artifacts from B (by Copy artifacts 
plugin), but S not. I could copy artifacts from B or D to S, but it is 
very artificial - I don't need them (and have performance drawbacks). 
I could also try to write some Groovy code similar to the one used in 
FingerprintingCopyMethod in Copy Artifacts plugin.




I dont think it's very "artificial", acutally it would be helpful if you 
know which version exactly has Job S tested. We generate a metadata file 
in job B and copy this artifact as "identifier" to all related jobs, so 
we can identify which job is doing something with which build.


What is the easiest way to tell Jenkins (Promoted Build plugin) that 
given artifact (fingerprint) is used by a specific build?


Marcin



--
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to "link" a particular job with the promotion process without physically copying the artifacts

2013-07-12 Thread Sami Tikka
The easiest way is to copy one of the artifacts. I usually have an artifact 
which is a small file containing the output of "git describe". Because the file 
is small, it is quick to copy and fingerprint and can be used to link builds.

-- Sami

Marcin Zajączkowski  kirjoitti 10.7.2013 kello 17.24:

> Hi,
> 
> I'm currently playing with Promoted Build plugin in the pipeline managed by 
> Build Flow plugin.
> 
> In a simplified form I have three jobs (called from the master job using 
> Build Flow plugin):
> - a normal build of a project - job B
> - a deploy WAR artifact to a remote Tomcat - job D
> - a smoke testing runs against a remote Tomcat (with deployed app) - job S
> 
> I would like to promote a WAR built in a B job when it passes a smoke testing 
> (S).
> 
> The issue is that there is no relationship between B and other jobs (they are 
> triggered through a pipeline with a concrete B build specified as a 
> parameter). D uses artifacts from B (by Copy artifacts plugin), but S not. I 
> could copy artifacts from B or D to S, but it is very artificial - I don't 
> need them (and have performance drawbacks). I could also try to write some 
> Groovy code similar to the one used in FingerprintingCopyMethod in Copy 
> Artifacts plugin.
> 
> What is the easiest way to tell Jenkins (Promoted Build plugin) that given 
> artifact (fingerprint) is used by a specific build?
> 
> Marcin
> 
> -- 
> 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-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




How to "link" a particular job with the promotion process without physically copying the artifacts

2013-07-10 Thread Marcin Zajączkowski

Hi,

I'm currently playing with Promoted Build plugin in the pipeline managed 
by Build Flow plugin.


In a simplified form I have three jobs (called from the master job using 
Build Flow plugin):

 - a normal build of a project - job B
 - a deploy WAR artifact to a remote Tomcat - job D
 - a smoke testing runs against a remote Tomcat (with deployed app) - job S

I would like to promote a WAR built in a B job when it passes a smoke 
testing (S).


The issue is that there is no relationship between B and other jobs 
(they are triggered through a pipeline with a concrete B build specified 
as a parameter). D uses artifacts from B (by Copy artifacts plugin), but 
S not. I could copy artifacts from B or D to S, but it is very 
artificial - I don't need them (and have performance drawbacks). I could 
also try to write some Groovy code similar to the one used in 
FingerprintingCopyMethod in Copy Artifacts plugin.


What is the easiest way to tell Jenkins (Promoted Build plugin) that 
given artifact (fingerprint) is used by a specific build?


Marcin

--
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.