Jenkins 2 Multibranch Pipelines - How to limit the visibility / execution of branches using the role strategy plugin?

I use multichannel piping in projects with two branches: evolve and process. This creates two subprojects, one for each branch:

App_Pipeline
     |---master
     |---develop

      

I installed the Role Strategy plugin to control the authorization (visibility) of jobs / pipelines based on the assigned role.

Project roles :

  • manager : regular expression usedApp_.*

  • developer : uses regexApp_.*

With my current roles, both types of users see the superproject (App_Pipeline) and can execute both subprojects.

The thing is, I want some users (developers) to be able to see and run the development subproject and some others (managers) to view and run both subprojects, build and develop.

I haven't found a way to set this up yet, any idea how this can be achieved?

+3


source to share





All Articles