Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Mike Craig
Thank you!

On Thu, Feb 28, 2019 at 9:48 AM Simon Bayer  wrote:

> Hi Mike, u could use the object 'currentbuild' to modify the job
> description. Its available in declarative pipeline builds (e.g. with
> multiproject pipeline plugin). Furthermore the build status can be set. But
> beware: if u set the status to 'failure', Post build actions for failures
> will not be triggered. Use the default step 'error' instead.
>
> Script-Example:
> script {
> currentBuild.description = 'Jenkins is awesome'
> currentBuild.status = 'success'
> }
>
> Greets
>
>
>
>  Ursprüngliche Nachricht 
> Von: Mike Craig 
> Datum: 27.02.19 23:12 (GMT+01:00)
> An: Jenkins Users 
> Betreff: Pipeline: How to modify Build History status monitor
>
> Hello,
>
> Prior to using declarative pipeline, we were able to modify the Build
> History to indicate information we wanted to see.
> We are using a shared "terraform-deploy" pipeline now and would like to
> modify this build history to display which project (aka component) was
> built in that run.
>
> [image: build history.png]
>
> Thank you,
>
> Mike
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c7a6018e-3600-42f7-91c5-56caeae99bdc%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/GY9ouPE496U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/BN8PR15MB3441DF5E5735C011915B8C2BAC750%40BN8PR15MB3441.namprd15.prod.outlook.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEmhiT8N1a3mDG2ZQX8B%2BexpCCE41V_SpCb9C99aw9pK0QooBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Simon Bayer
Hi Mike, u could use the object 'currentbuild' to modify the job description. 
Its available in declarative pipeline builds (e.g. with multiproject pipeline 
plugin). Furthermore the build status can be set. But beware: if u set the 
status to 'failure', Post build actions for failures will not be triggered. Use 
the default step 'error' instead.

Script-Example:
script {
currentBuild.description = 'Jenkins is awesome'
currentBuild.status = 'success'
}

Greets



 Ursprüngliche Nachricht 
Von: Mike Craig 
Datum: 27.02.19 23:12 (GMT+01:00)
An: Jenkins Users 
Betreff: Pipeline: How to modify Build History status monitor

Hello,

Prior to using declarative pipeline, we were able to modify the Build History 
to indicate information we wanted to see.
We are using a shared "terraform-deploy" pipeline now and would like to modify 
this build history to display which project (aka component) was built in that 
run.


[build history.png]

Thank you,

Mike


--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c7a6018e-3600-42f7-91c5-56caeae99bdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/BN8PR15MB3441DF5E5735C011915B8C2BAC750%40BN8PR15MB3441.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Mike Craig
Perfect, thank you for the reference! Having a "how-to" question, and
mapping that to a documentation section is the hardest part for me. :)

On Wed, Feb 27, 2019 at 10:55 PM Andreas Magnusson <
andreas.ch.magnus...@gmail.com> wrote:

> Not quite sure what you want to do, but we modify currentBuild.displayName
> and currentBuild.description from within our pipeline.
> They are documented under Pipeline Syntax | Global Variable Reference
>
> /Andreas
>
> --
> 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/GY9ouPE496U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/bbf0bdca-3bd6-4e4d-a163-7e282fa25336%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEmhiT_oNe5EgZdEdKshof0hGVhQCEVY_toocGT%3D5AOrgsCY%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline: How to modify Build History status monitor

2019-02-27 Thread Andreas Magnusson
Not quite sure what you want to do, but we modify currentBuild.displayName 
and currentBuild.description from within our pipeline.
They are documented under Pipeline Syntax | Global Variable Reference

/Andreas

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bbf0bdca-3bd6-4e4d-a163-7e282fa25336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.