Authorization on Multibranch Pipeline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Authorization on Multibranch Pipeline

Rishi Gautam
Is there any way to enable authorization to build only specific branch(job) on jenkins multbranch pipeline?

Use Case:
User1: can only build test branch.
User2: can build both test and master branch.

It would be very helpful to get the solution. Thanks in advance.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86a58043-d55c-40ac-ae59-3f9e185b53bbn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Authorization on Multibranch Pipeline

Jibsan Joel Rosa Toirac
Well I solved the problem, I used "sudo" before the commands and it started to work, anyhow I ran the command "root/.sdkman/candidates/grails/3.3.2/bin/grails war" and all started to work. Thanks for your help

El mar, 1 dic 2020 a las 10:30, Rishi Gautam (<[hidden email]>) escribió:
Is there any way to enable authorization to build only specific branch(job) on jenkins multbranch pipeline?

Use Case:
User1: can only build test branch.
User2: can build both test and master branch.

It would be very helpful to get the solution. Thanks in advance.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86a58043-d55c-40ac-ae59-3f9e185b53bbn%40googlegroups.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAAFuM4EEgdmSJZKbksDY05WB1qKY1-Oyp3_0puU9zHhCocwG-Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Authorization on Multibranch Pipeline

Rishi Gautam
some way to restrict User1 to  trigger the build button from console on master branch?

On Wed, Dec 2, 2020 at 2:03 AM Jibsan Joel Rosa Toirac <[hidden email]> wrote:
Well I solved the problem, I used "sudo" before the commands and it started to work, anyhow I ran the command "root/.sdkman/candidates/grails/3.3.2/bin/grails war" and all started to work. Thanks for your help

El mar, 1 dic 2020 a las 10:30, Rishi Gautam (<[hidden email]>) escribió:
Is there any way to enable authorization to build only specific branch(job) on jenkins multbranch pipeline?

Use Case:
User1: can only build test branch.
User2: can build both test and master branch.

It would be very helpful to get the solution. Thanks in advance.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86a58043-d55c-40ac-ae59-3f9e185b53bbn%40googlegroups.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAAFuM4EEgdmSJZKbksDY05WB1qKY1-Oyp3_0puU9zHhCocwG-Q%40mail.gmail.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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAF4beLiozXoWtgGp1zLJHeuzd-b0-H%3DbGmHtPzFmW-3d0h1D8A%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Authorization on Multibranch Pipeline

Victor Martinez
I'm not sure if for the same Multibranch Pipeline there are certain authorisations for branches, but creating two Multibranch Pipelines for those branches and add the authorization at the project level might fulfill your needs:


On Wednesday, 2 December 2020 at 03:54:08 UTC Rishi Gautam wrote:
some way to restrict User1 to  trigger the build button from console on master branch?

On Wed, Dec 2, 2020 at 2:03 AM Jibsan Joel Rosa Toirac <[hidden email]> wrote:
Well I solved the problem, I used "sudo" before the commands and it started to work, anyhow I ran the command "root/.sdkman/candidates/grails/3.3.2/bin/grails war" and all started to work. Thanks for your help

El mar, 1 dic 2020 a las 10:30, Rishi Gautam (<[hidden email]>) escribió:
Is there any way to enable authorization to build only specific branch(job) on jenkins multbranch pipeline?

Use Case:
User1: can only build test branch.
User2: can build both test and master branch.

It would be very helpful to get the solution. Thanks in advance.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86a58043-d55c-40ac-ae59-3f9e185b53bbn%40googlegroups.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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c3f96ea0-a355-4a37-8c93-fb6880db4a00n%40googlegroups.com.