Am 22.08.2013 14:41, schrieb deevant07:
Hi,
I have the following scenario.
A build job is created. On successful build i want the build to be promoted
by a particular role( "DEV Approvers" - Using Role Strategy Plugin ) to
environment say DEV. On successful completion of DEV promotion i want that
build to be enabled for promotion to next level(say UAT) only to particular
role say "UAT-Aproovers". Subsequently the next levels...
We have a similar setting, it is probably less fine grained as yours,
but it basically works as expectd.
I have used Promoted builds plugin along with Role Strategy plugin. Although
this works to some extent but it does not provide me the exact behavior as
explained above.
1. Job is given access to role "build" with build permission. It allows
users with build role to execute the build.
2. Job is given access to role "DEV Approvers" with promote permission. It
does not give users of "DEV Approvers" the option "Approve Button" but
rather it gives "Force Promotion" Option.
3. Similarly, Job is given access to role "UAT Approvers" with promote
permission. It does not give users of "UAT Approvers" the option "Approve
Button" but rather it gives "force promotion"
In the promotion configuration on job configure screen, we check "only
when manually approved"
with approvers username provided in the "Approvers" input field. The
approvers then
have a approve button (IIUC the approver still need the promote
permission, that means,
the also have the "force promotion" button at the same time). This might
not be perfect,
but we are not aming at restict role controll, but rather conienience
for the users.
Now if the step 2 is not executed then i dont want to allow the step 3 to be
executed but in my case step 3 is executing even though i have given the
criteria "When the following upstream promotions are promoted" with step 2
promotion label.
We also use "When the following upstream promotions are promoted" to
controll the promotion
dependencies. My experience so far is: if step 2 is not yet promted, the
user can still do
the step 3 promotion, but it is blocked by step2. If step 2 is promoted,
then step 3
will be performed immediately thereafter (this is only my observation, I
didnt test it deliberately,
so I may well be wrong).
Can someone help with a solution or any workaround?
Thanks,
Deevan
--
View this message in context:
http://jenkins-ci.361315.n4.nabble.com/Manual-Promotion-and-Upstream-Promotion-Criteria-along-with-Role-Strategy-plugin-tp4676887.html
Sent from the Jenkins users mailing list archive at Nabble.com.
--
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/groups/opt_out.