Hi,
I have not found a way to solely trigger a promotion via a groovy script.
However you are able to trigger a build and give a parameter with which a 
promotion will be triggered after the build is through. You will have to 
check "Promote immediately once the build is complete based on build 
parameters" under the promotion criteria and define the parameter + value 
on which to react.
Only downside is, manual promotions can only be executed by administrators 
(via force promotion), since the "Only when manually approved" check box 
must not be checked for this to work completely automated.
br,
Benny

Am Samstag, 8. Februar 2014 22:45:26 UTC+1 schrieb Mark Humphreys:
>
> Hi
>
> I am looking to trigger promotions from a groovy script, and don't really 
> know where to start. Can I trigger the manual promotions associated with a 
> job to promote the task ?
>
> Thanks
>
> Mark H
>

-- 
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/d/optout.

Reply via email to