The build status is set normally as the build finishes successfully or not.
To explicitly control de status you can use `currentBuild.result` as Arnaud
said. You can set de build display name by using
`currentBuild.displayName='whatever'`.
On Tue, Jun 21, 2016 at 12:38 PM, Arnaud Héritier
wrote:
Hi Mike,
AFAIK currentBuild.result is never set automatically in pipeline jobs.
You have to explicitly set it with something like
try {
// do something
currentBuild.result = 'SUCCESS'
} catch (Exception err) {
currentBuild.result = 'FAILURE'
}
it may explain why it is null in your post b
Hi,
I'm looking to try and setup a post build groovy script event with my
Jenkinsfile for my multibranch job. Is this possible? I'm looking to try
and update the build display name with the svn revision number used at the
time of the build. This is the jenkinsfile script im using:
node()
{
s