If anybody ever wonder it's the following:
*if(currentBuild.result == '**SUCCESS')*
*{*
manager.addShortText("${APPLY_TAG}")
}
Not sure the isBetterOrEqualTo() is still available somewhere.
On Wednesday, July 13, 2016 at 11:44:03 AM UTC-4, [email protected] wrote:
>
> Hi,
>
> I try to translate my Groovy PostBuild to pipeline:
>
> *if(manager.build.result.isBetterOrEqualTo(hudson.model.Result.SUCCESS)) *
> *{*
> *
> manager.addShortText("${manager.build.buildVariables.get('APPLY_TAG')}")*
> *}*
>
> I was thinking about using this:
>
> *if(manager.build.result.isBetterOrEqualTo(hudson.model.Result.SUCCESS)) *
> *{*
> * manager.addShortText("${APPLY_TAG}");*
> *}*
>
> But it doesn't work. Anyone have any idea?
>
> Jerome
>
--
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/40e460aa-41ee-4f3f-830f-28d2df330f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.