RE: Reload build.xml after finishing build

2013-06-13 Thread Sandell, Robert
o:jenkinsci- > d...@googlegroups.com] On Behalf Of Jesse Glick > Sent: den 13 juni 2013 14:43 > To: jenkinsci-dev@googlegroups.com > Subject: Re: Reload build.xml after finishing build > > On 06/13/2013 04:58 AM, Sandell, Robert wrote: > >def oldAuth = > SecurityC

Re: Reload build.xml after finishing build

2013-06-13 Thread Jesse Glick
On 06/13/2013 04:58 AM, Sandell, Robert wrote: def oldAuth = SecurityContextHolder.getContext().getAuthentication() User otherUser = User.get("username") SecurityContextHolder.getContext().setAuthentication(otherUser.impersonate()) build.addAction(new CauseAction(new Cause.UserIdCause

RE: Reload build.xml after finishing build

2013-06-13 Thread Sandell, Robert
ooglegroups.com] On Behalf Of mallikarjunece > Sent: den 10 juni 2013 07:38 > To: jenkinsci-dev@googlegroups.com > Subject: RE: Reload build.xml after finishing build > > Hi Sandell, > > Can you share the Groovy script, if you have > > Thanks in advance > Mall

RE: Reload build.xml after finishing build

2013-06-09 Thread mallikarjunece
Hi Sandell, Can you share the Groovy script, if you have Thanks in advance Mallikarjuna -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Reload-build-xml-after-finishing-build-tp4664201p4668880.html Sent from the Jenkins dev mailing list archive at Nabble.com. --

RE: Reload build.xml after finishing build

2013-04-26 Thread Sandell, Robert
The started by user is handled by the Cause of the build, in this case Cause.UserCause and is added to a CauseAction before the build starts. A groovy script from the script console can change this by removing any existing causes in the action and adding a new. I guess that a Groovy post build s