I have jenkins with multibranch pipeline and each project has multiple jobs, My whole structure is as below
Sales is root folder on Jenkins Dashboard.
sales
sd-call
build-and-package
deploy-to-qa
deploy-to-stage
deploy-to-prod
sd-emails
build-and-package
deploy-to-qa
deploy-to-stage
deploy-to-prod
sd-iam
build-and-package
deploy-to-qa
deploy-to-stage
deploy-to-prod
sd-call, sd-emails and sd-iam are subfolder inside sales. And each subfolder has 4 multibranch pipeline (job)
Problem:
I want to give acess only for selected job to selected group of people.
i.e. Developer people can only access sales->sd-call->deploy-to-qa only.
DevOps people can only access all items
I have tried through Item Roles with Regex Pattern as below
First pattern : (?i)sales($|/sd-call)($|/deploy-to-qa) (This is working fine for 1 project only, but this is not sufficient)
So I have added wildcard for second level project i.e something like (?i)sales($|/sd.*)($|/deploy-to-qa) But after this Developer can access all items instead of just deploy-to-qa,
Can someone help me to give such access to Developer and DevOps group.
Thanks in advance.