I want to setup multi-tenant support for our Jenkins. Let, we have 5 jobs for two users (GitHub user) in Jenkins and all the 5 jobs are in a single server.
user_1
has j1
, j2
, j3
jobs user_2
has j4
, j5
jobsNow,
user_1
can see only j1
, j2
and j3
jobs (and don't see j4
or j5
) user_2
can see only j4
and j5
jobs when they come in Jenkins.
How can we setup Jenkins for multi-tenant support?
For the quickest approach to accomplish what you are describing, follow these steps:
You can utilize some type of naming convention for your jobs and you can use regular expression to provide access for a set of jobs.
Another option would be to check out some of the Authentication/Authorization plugins available for Jenkins. A popular plugin in this realm is the Matrix Authorization Strategy Plugin (often combined with Active Directory), though I have not personally used this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With