HI,
I have this post-buidl action:
post {
always {
script {
if (currentBuild.result == 'UNSTABLE'){
currentBuild.result = 'STABLE'
}
currentBuild.result = 'SUCCESS'
}
}
}
All i need is just to set build to SUCCESS even if it is UNSTABLE.
JUNIT step produces currentBuild.result = UNSTABLE < this is ok..
at the end I need to change status to succes. I tried all possible
combinations.
If I do:
post {
always {
script {
if (currentBuild.result == 'UNSTABLE'){
currentBuild.result = 'SUCCESS'
}
}
}
}
It does nothing and build is yellow....
If I do:
post {
always {
script {
if (currentBuild.result == 'UNSTABLE'){
currentBuild.result = 'STABLE'
}
}
}
}
All steps change to green/blue (that is correct) but overal build is
FAILURE
I'm out of ideas and it seems to me as a bug.
If I do nothing in postbuild full build is marked as 'UNSTABLE'
thanks for any ideas
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f2eac395-838e-4421-b9b8-ec9a7308cc31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.