Quantcast

Configuring multiple svn accounts in jenkins

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Configuring multiple svn accounts in jenkins

Kalpana
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..
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Configuring multiple svn accounts in jenkins

Mandeville, Rob
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Configuring multiple svn accounts in jenkins

Baptiste MATHUS-2

+1. As the information of who started the build is already available, not sure it's a good idea.
If you really want to do that, I guess you could use builds parameters. Here they would be the username/pass of the user starting the build. And by default it would the user you're already are using currently.

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.

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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configuring multiple svn accounts in jenkins

Kalpana
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:(
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configuring multiple svn accounts in jenkins

Baptiste MATHUS-2
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..
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:(



--
View this message in context: http://jenkins.361315.n4.nabble.com/Configuring-multiple-svn-accounts-in-jenkins-tp4641682p4641868.html
Sent from the Jenkins users mailing list archive at Nabble.com.

--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
nbsp;!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configuring multiple svn accounts in jenkins

Kalpana
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??
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configuring multiple svn accounts in jenkins

Baptiste MATHUS-3
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 :)

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??



--
View this message in context: http://jenkins.361315.n4.nabble.com/Configuring-multiple-svn-accounts-in-jenkins-tp4641682p4641887.html
Sent from the Jenkins users mailing list archive at Nabble.com.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Configuring multiple svn accounts in jenkins

Mandeville, Rob
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
Sent: Monday, October 01, 2012 3:53 AM
To: [hidden email]
Subject: Re: Configuring multiple svn accounts in jenkins

 

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&#43;Trigger&#43;Badge&#43;Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Build+Trigger+Badge+Plugin

</shamelessPlus>

 

Cheers

2012/10/1 Kalpana <[hidden email]>

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:(



--
View this message in context: http://jenkins.361315.n4.nabble.com/Configuring-multiple-svn-accounts-in-jenkins-tp4641682p4641868.html

Sent from the Jenkins users mailing list archive at Nabble.com.

 

--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
nbsp;!

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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configuring multiple svn accounts in jenkins

Amaliasepty
This post has NOT been accepted by the mailing list yet.
In reply to this post by Kalpana
Loading...