|
Hello,
I have around 10-12 users using the svn repository (basically my team). I need to configure all their svn credentials in jenkins, such that whenever they try to run a job , jenkins must ask for their account details.Also this svn user/pwd should be synced with jenkins user accounts such that whenever they login with the svn account, the corresponding jenkins user account must be logged in.If the concerned user starts a job, then the job must appear as run from the particular user's login and not as anonymous or some common username. When I was browsing through forums certain sites pointed that only one svn credential can be configured. Please help me in this.. |
|
I don't think that Jenkins can really do this, not without major surgery. This goes against the grain of not just Jenkins, but continuous integration and automated builds in general. Part of the idea of having Jenkins is to fully automate your build so that it doesn't matter _who_ built the job, it all comes out the same. I think it might be better if we knew why you needed this.
Every build includes a record of how the build was triggered, and if it was triggered by hand (rather than by seeing a change in SVN or on another sort of schedule), it will tell you which Jenkins user triggered the build. In my own build system (with 60+ users), Jenkins checks the code out of the repository as its own user, which has read-only privileges on the repository. I can always find out who launched a build, but it's by asking Jenkins, not my source control. --Rob -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Kalpana Sent: Friday, September 28, 2012 7:28 AM To: [hidden email] Subject: Configuring multiple svn accounts in jenkins Hello, I have around 10-12 users using the svn repository (basically my team). I need to configure all their svn credentials in jenkins, such that whenever they try to run a job , jenkins must ask for their account details.Also this svn user/pwd should be synced with jenkins user accounts such that whenever they login with the svn account, the corresponding jenkins user account must be logged in.If the concerned user starts a job, then the job must appear as run from the particular user's login and not as anonymous or some common username. When I was browsing through forums certain sites pointed that only one svn credential can be configured. Please help me in this.. -- View this message in context: http://jenkins.361315.n4.nabble.com/Configuring-multiple-svn-accounts-in-jenkins-tp4641682.html Sent from the Jenkins users mailing list archive at Nabble.com. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer. |
|
+1. As the information of who started the build is already available, not sure it's a good idea. Cheers Le 28 sept. 2012 13:42, "Mandeville, Rob" <[hidden email]> a écrit :
I don't think that Jenkins can really do this, not without major surgery. This goes against the grain of not just Jenkins, but continuous integration and automated builds in general. Part of the idea of having Jenkins is to fully automate your build so that it doesn't matter _who_ built the job, it all comes out the same. I think it might be better if we knew why you needed this. |
|
In reply to this post by Kalpana
Thanks..
but Can any of you please elborate me on where to find the information regd who started the build.??? also how to configure the privileges as read only ?? should we do this in svn or jenkins.. pls elaborate.. this is seriously eating my head:( |
|
Hi,
Click on any build in the build history. On that page, Jenkins is telling you what triggered the build. If it was manually triggered by someone, you'll have the message "Started by [UserName]" (assuming you only have authenticated users).
<shamelessPlug> By the way, if you want to see directly what triggered a build from the job page along with each build in the build history panel, you can use the BuildTriggerBadgePlugin :-).
</shamelessPlus> Cheers
2012/10/1 Kalpana <[hidden email]> Thanks.. |
|
In reply to this post by Kalpana
Thanks a lot :)
One more question... I may keep beating around the bush!! sry about that.. i'm new to this :( How many users can i configure for a particular jenkins instance ?? like... for how many users i ca provide access?? and also where to add the user credentials to secure jenkins build trigger?? |
|
Well, it depends. If you require authenticated users, then that is going to be the maximum number of that instance.
But anyway, requiring a maximum number of "users" doesn't seem really sensible for a CI server since its activity is mostly gonna be driven by the jobs themselves, and not by the UI end users.
If you need to configure security, you're left with many options. I'd advice you to have a look at the Jenkins Definitive Guide: http://www.wakaleo.com/books/jenkins-the-definitive-guide
For example, if you have a corporate LDAP, you could want to integrate Jenkins authentication with it. That's what we do with our Active Directory. Cheers
2012/10/1 Kalpana <[hidden email]> Thanks a lot :) Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! |
|
In reply to this post by Baptiste MATHUS-2
In my case, I have an SCM account (AccuRev rather than SVN in my case) that has read-only access to the files. That is, it can get all the files it wants,
but is not allowed to check changes in. Jenkins is configured to use this account. So make a read-only subversion account (maybe call it ‘build’ or something) and enter that into the Jenkins SCM configuration. --Rob From: [hidden email] [mailto:[hidden email]]
On Behalf Of Baptiste Mathus Hi, Click on any build in the build history. On that page, Jenkins is telling you what triggered the build. If it was manually triggered by someone, you'll have the message "Started by [UserName]" (assuming you only have authenticated users). <shamelessPlug> By the way, if you want to see directly what triggered a build from the job page along with each build in the build history panel, you can use the BuildTriggerBadgePlugin :-). <a href="https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin </shamelessPlus> Cheers 2012/10/1 Kalpana <[hidden email]> Thanks.. Sent from the Jenkins users mailing list archive at Nabble.com. --
The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
|
|
This post has NOT been accepted by the mailing list yet.
In reply to this post by Kalpana
|
| Powered by Nabble | Edit this page |
