Show List of downstream jobs

2016-11-25 Thread Jovan Jevric
Hi @ all,


I'm currently using Jenkins v1.609. I was wondering if there is actually a 
plugin which does show all the downstream-jobs linked in main job. This feature 
would be very useful as one is able to check results which is interested 
in(e.g. jobA). Otherwise one is supposed to click all the downstream jobs down 
to a particular job(jobA) to gather the results.


Can someone give me a wink? I've had a look around but maybe I've missed 
something?


Thanks in advance!
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.0001087C0094E0B6%4010.11.0.23.
For more options, visit https://groups.google.com/d/optout.


Re-8: Copy files from remote Jenkins workspace

2016-11-14 Thread Jovan Jevric
Workspace per definition is space you gave jenkins to store all the builds 
executed on master. If you run 50 Jobs from JobA all builds including artefacts 
will be stored on master. So you'll run out of memory defenitelly if you don't 
care about housekeepings. Local workspace you mean is workspace acquired on 
jenkins slave for a job execution. Keep on working on your basics dude;-)




Don't archive artefacts and get the artefacts from slave on your own. On that 
way none artefacts are put on your master machine. But keep in mind, that none 
artefacts can be accessed in your job history if not archived.


Cheers




Original Message processed by david®  
Re: Re-6: Copy files from remote Jenkins workspace (14-Nov-2016 12:41)
From:   Eran Yanay
To:jenkinsci-users@googlegroups.com



My workspace is already very slim, because I override it for every build. 
So I dont really have any housekeeping, as each build only stores information 
like console output, and since all my work is done inside the workspace, I 
never go out of space.
If I now make artifacts of my workspace for every build, Is it possible to 
remove only the artifact once its downloaded to my master node?



On Mon, Nov 14, 2016 at 12:14 PM, Jovan Jevric <j...@huber-online.com> wrote:


You'll have to do some housekeeping anywayOtherwise you'll run out of 
memory very fast. 
By archiving all the artefacts generated(mainly needed for release steps or 
similar) on your own you'll be able to keep your jenkins workspace very slim. 
This is an advantage and practicable.


Keeping Console Output by simply archiving is possible. I do so on the 
following way:
-Use Log Parser Plugin which generates a Log.txt or similar in your project on 
slave workspace and include it as post build step('Console output(build 
log)parsing')
-Get your Console Output from slaves by scp/ssh or similar e.g.




Original Message processed by david®  
Re: Re-4: Copy files from remote Jenkins workspace (14-Nov-2016 10:41)
From:   Eran Yanay
To:jenkinsci-users@googlegroups.com



Discarding older builds means it discards my console output of these builds as 
well, I wish to keep it.



On Mon, Nov 14, 2016 at 11:40 AM, Jovan Jevric <j...@huber-online.com> wrote:


Do archive the artefacts elsewhere by running a post-build job, as you 
proposed. And simply parametrize your job that way, that elder jobs on your 
host are being deleted automatically. In other words - simply discard old 
builds, doing that is very simple.






Original Message processed by david®  
Re: Re-2: Copy files from remote Jenkins workspace (14-Nov-2016 10:15)
From:   buddy123
To:Jenkins Users



I'll look into pipeline, though it seems very complicated. 
Regarding artifacts, I've thought about it, but I cant figure out how to delete 
the artifacts once I finished the job, otherwise my disk space will get empty 
very quickly.
Is it possilble to mark files as artifacts, pull them from slave, and then 
erase them?
I want to keep the console output of every build though, just dont care about 
the artifacts because I store them elsewhere


On Monday, November 14, 2016 at 11:12:08 AM UTC+2, jje wrote: 
What about archiving artefacts. On that way all output marked as artefacts 
could be found on master so far, couldn't it?




Original Message processed by david®  
Re: Copy files from remote Jenkins workspace (13-Nov-2016 15:39)
From:   Baptiste Mathus
To:jenkins...@googlegroups.com



Look for pipeline jobs. Might be far easier to achieve that. 

 
https://jenkins.io/pipeline/getting-started-pipelines/[jenkins.io]
 



2016-11-13 11:23 GMT+01:00 buddy123 <er...@twistlock.com>:



down votefavorite[stackoverflow.com] Im trying to create a cross-compilation 
job, that will build my code for both Windows & Linux. I have set up Windows & 
Linux jenkins nodes, and configured two jobs, one with 'windows' label to run 
on my Windows machine and the other with 'linux' label to run on my linux 
machine. I installed MultiJob plugin, and wrapped both jobs to run in parallel 
When both finishes successfully, I want to copy all the generated files and do 
operations on them In other words I want to copy the files from both jobs 
remote workspaces for further operations Can anyone suggest a way how to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/05639dc0-fce6-4ce7-9cc1-c39e95ca7498%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].


 
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-us

Re-6: Copy files from remote Jenkins workspace

2016-11-14 Thread Jovan Jevric
You'll have to do some housekeeping anywayOtherwise you'll run out of 
memory very fast. 
By archiving all the artefacts generated(mainly needed for release steps or 
similar) on your own you'll be able to keep your jenkins workspace very slim. 
This is an advantage and practicable.


Keeping Console Output by simply archiving is possible. I do so on the 
following way:
-Use Log Parser Plugin which generates a Log.txt or similar in your project on 
slave workspace and include it as post build step('Console output(build 
log)parsing')
-Get your Console Output from slaves by scp/ssh or similar e.g.




Original Message processed by david®  
Re: Re-4: Copy files from remote Jenkins workspace (14-Nov-2016 10:41)
From:   Eran Yanay
To:jenkinsci-users@googlegroups.com



Discarding older builds means it discards my console output of these builds as 
well, I wish to keep it.



On Mon, Nov 14, 2016 at 11:40 AM, Jovan Jevric <j...@huber-online.com> wrote:


Do archive the artefacts elsewhere by running a post-build job, as you 
proposed. And simply parametrize your job that way, that elder jobs on your 
host are being deleted automatically. In other words - simply discard old 
builds, doing that is very simple.






Original Message processed by david®  
Re: Re-2: Copy files from remote Jenkins workspace (14-Nov-2016 10:15)
From:   buddy123
To:Jenkins Users



I'll look into pipeline, though it seems very complicated. 
Regarding artifacts, I've thought about it, but I cant figure out how to delete 
the artifacts once I finished the job, otherwise my disk space will get empty 
very quickly.
Is it possilble to mark files as artifacts, pull them from slave, and then 
erase them?
I want to keep the console output of every build though, just dont care about 
the artifacts because I store them elsewhere


On Monday, November 14, 2016 at 11:12:08 AM UTC+2, jje wrote: 
What about archiving artefacts. On that way all output marked as artefacts 
could be found on master so far, couldn't it?




Original Message processed by david®  
Re: Copy files from remote Jenkins workspace (13-Nov-2016 15:39)
From:   Baptiste Mathus
To:jenkins...@googlegroups.com



Look for pipeline jobs. Might be far easier to achieve that. 

 
https://jenkins.io/pipeline/getting-started-pipelines/[jenkins.io]
 



2016-11-13 11:23 GMT+01:00 buddy123 <er...@twistlock.com>:



down votefavorite[stackoverflow.com] Im trying to create a cross-compilation 
job, that will build my code for both Windows & Linux. I have set up Windows & 
Linux jenkins nodes, and configured two jobs, one with 'windows' label to run 
on my Windows machine and the other with 'linux' label to run on my linux 
machine. I installed MultiJob plugin, and wrapped both jobs to run in parallel 
When both finishes successfully, I want to copy all the generated files and do 
operations on them In other words I want to copy the files from both jobs 
remote workspaces for further operations Can anyone suggest a way how to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/05639dc0-fce6-4ce7-9cc1-c39e95ca7498%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].


 
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6i%3DXazsb%3DzYyQ_21PXnJSQN5gNpBmJJycUZrOnwZXTaA%40mail.gmail.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d70bc939-7416-4d89-9265-7b2d8631d301%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].

-- 
You received this message because you are subscribed to a topic in the Google 
Groups "Jenkins Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jenkinsci-users/1OChk_e4A6Y/unsubscribe[groups.google.com].
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.228E0093FFA4%40

Re-4: Copy files from remote Jenkins workspace

2016-11-14 Thread Jovan Jevric
Do archive the artefacts elsewhere by running a post-build job, as you 
proposed. And simply parametrize your job that way, that elder jobs on your 
host are being deleted automatically. In other words - simply discard old 
builds, doing that is very simple.






Original Message processed by david®  
Re: Re-2: Copy files from remote Jenkins workspace (14-Nov-2016 10:15)
From:   buddy123
To:Jenkins Users



I'll look into pipeline, though it seems very complicated. 
Regarding artifacts, I've thought about it, but I cant figure out how to delete 
the artifacts once I finished the job, otherwise my disk space will get empty 
very quickly.
Is it possilble to mark files as artifacts, pull them from slave, and then 
erase them?
I want to keep the console output of every build though, just dont care about 
the artifacts because I store them elsewhere


On Monday, November 14, 2016 at 11:12:08 AM UTC+2, jje wrote: 
What about archiving artefacts. On that way all output marked as artefacts 
could be found on master so far, couldn't it?




Original Message processed by david®  
Re: Copy files from remote Jenkins workspace (13-Nov-2016 15:39)
From:   Baptiste Mathus
To:jenkins...@googlegroups.com



Look for pipeline jobs. Might be far easier to achieve that. 

 
https://jenkins.io/pipeline/getting-started-pipelines/[jenkins.io]
 



2016-11-13 11:23 GMT+01:00 buddy123 :



down votefavorite[stackoverflow.com] Im trying to create a cross-compilation 
job, that will build my code for both Windows & Linux. I have set up Windows & 
Linux jenkins nodes, and configured two jobs, one with 'windows' label to run 
on my Windows machine and the other with 'linux' label to run on my linux 
machine. I installed MultiJob plugin, and wrapped both jobs to run in parallel 
When both finishes successfully, I want to copy all the generated files and do 
operations on them In other words I want to copy the files from both jobs 
remote workspaces for further operations Can anyone suggest a way how to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/05639dc0-fce6-4ce7-9cc1-c39e95ca7498%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].


 
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6i%3DXazsb%3DzYyQ_21PXnJSQN5gNpBmJJycUZrOnwZXTaA%40mail.gmail.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d70bc939-7416-4d89-9265-7b2d8631d301%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.228E0093FFA4%4010.11.0.23.
For more options, visit https://groups.google.com/d/optout.


Re-4: Copy files from remote Jenkins workspace

2016-11-14 Thread Jovan Jevric
...post build job or post build step and executing a shell script or similar, 
which moves your artefacts.




Original Message processed by david®  
Re: Re-2: Copy files from remote Jenkins workspace (14-Nov-2016 10:15)
From:   buddy123
To:Jenkins Users



I'll look into pipeline, though it seems very complicated. 
Regarding artifacts, I've thought about it, but I cant figure out how to delete 
the artifacts once I finished the job, otherwise my disk space will get empty 
very quickly.
Is it possilble to mark files as artifacts, pull them from slave, and then 
erase them?
I want to keep the console output of every build though, just dont care about 
the artifacts because I store them elsewhere


On Monday, November 14, 2016 at 11:12:08 AM UTC+2, jje wrote: 
What about archiving artefacts. On that way all output marked as artefacts 
could be found on master so far, couldn't it?




Original Message processed by david®  
Re: Copy files from remote Jenkins workspace (13-Nov-2016 15:39)
From:   Baptiste Mathus
To:jenkins...@googlegroups.com



Look for pipeline jobs. Might be far easier to achieve that. 

 
https://jenkins.io/pipeline/getting-started-pipelines/[jenkins.io]
 



2016-11-13 11:23 GMT+01:00 buddy123 :



down votefavorite[stackoverflow.com] Im trying to create a cross-compilation 
job, that will build my code for both Windows & Linux. I have set up Windows & 
Linux jenkins nodes, and configured two jobs, one with 'windows' label to run 
on my Windows machine and the other with 'linux' label to run on my linux 
machine. I installed MultiJob plugin, and wrapped both jobs to run in parallel 
When both finishes successfully, I want to copy all the generated files and do 
operations on them In other words I want to copy the files from both jobs 
remote workspaces for further operations Can anyone suggest a way how to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/05639dc0-fce6-4ce7-9cc1-c39e95ca7498%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].


 
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6i%3DXazsb%3DzYyQ_21PXnJSQN5gNpBmJJycUZrOnwZXTaA%40mail.gmail.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d70bc939-7416-4d89-9265-7b2d8631d301%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.22880093FFB3%4010.11.0.23.
For more options, visit https://groups.google.com/d/optout.


Re-2: Copy files from remote Jenkins workspace

2016-11-14 Thread Jovan Jevric
What about archiving artefacts. On that way all output marked as artefacts 
could be found on master so far, couldn't it?




Original Message processed by david®  
Re: Copy files from remote Jenkins workspace (13-Nov-2016 15:39)
From:   Baptiste Mathus
To:jenkinsci-users@googlegroups.com



Look for pipeline jobs. Might be far easier to achieve that. 



https://jenkins.io/pipeline/getting-started-pipelines/[jenkins.io]





2016-11-13 11:23 GMT+01:00 buddy123 :



down votefavorite[stackoverflow.com] Im trying to create a cross-compilation 
job, that will build my code for both Windows & Linux. I have set up Windows & 
Linux jenkins nodes, and configured two jobs, one with 'windows' label to run 
on my Windows machine and the other with 'linux' label to run on my linux 
machine. I installed MultiJob plugin, and wrapped both jobs to run in parallel 
When both finishes successfully, I want to copy all the generated files and do 
operations on them In other words I want to copy the files from both jobs 
remote workspaces for further operations Can anyone suggest a way how to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/05639dc0-fce6-4ce7-9cc1-c39e95ca7498%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6i%3DXazsb%3DzYyQ_21PXnJSQN5gNpBmJJycUZrOnwZXTaA%40mail.gmail.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.22F10093FE60%4010.11.0.23.
For more options, visit https://groups.google.com/d/optout.


Re: Domestic Cleaning Agencies in Bangalore

2016-10-07 Thread Jovan Jevric
not that kind of jenkins, dude;-)




Original Message processed by david®  
Domestic Cleaning Agencies in Bangalore (08-Okt-2016 6:54)
From:   bisy biz
To:Jenkins Users



Domestic Cleaning Agencies in Bangalore[busybizz.com]- List of expert cleaners 
in Bangalore and cleansing businesses, businesses, price, contact addresses, 
smartphone numbers, person ratings and opinions immediately on www.busybizz.com
http://www.busybizz.com[busybizz.com%0D]
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b5e2a1ae-2950-4dd8-a6fa-66c53a350665%40googlegroups.com[groups.google.com].
For more options, visit https://groups.google.com/d/optout[groups.google.com].

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.000118A10091606A%4010.11.0.23.
For more options, visit https://groups.google.com/d/optout.


Re-2: strange job folders on Jenkins server

2016-08-04 Thread Jovan Jevric
After an jenkins Upgrade to version 1.6XXX I've noticed, that those folders, 
related to default build number/name has been changed in format. Eventually 
they have had the mentioned format before upgrade, pls. check the jenkins 
release notes. 

But anyway -  would you mind to set up functionallity to simply drop/discard 
old builds? jenkins wouldn't complain about it;.)
Did you set up jenkins by your own or did you get e.g. VBox Img. - maybe those 
folders have had been there before?

Joe

 Original Message 
Subject: Re: strange job folders on Jenkins server (03-Aug-2016 23:44)
From:Daniel Beck 
To:  j...@huber-online.com

> Do they contain a config.xml file?
> 
> > On 03.08.2016, at 21:28, Ginga, Dick  wrote:
> > 
> > Anyone, are these timestamp-named folder related to the legacyIds file?
> >  
> > Anyone know what the legacyIds file is for?
> >  
> > From: Ginga, Dick 
> > Sent: Wednesday, August 03, 2016 9:02 AM
> > To: jenkinsci-users@googlegroups.com
> > Subject: strange job folders on Jenkins server
> >  
> > Hi all, our Jenkins server disk is getting full and in perusing the jobs 
> > and builds folders I have noticed that I have old build folders with date/
> > time stamp formats (not sym links) that are not displayed in the Jenkins 
> > dashboard for those builds. I have folders with build numbers that make 
> > sense (298, 299, 300, etc)
> >  
> > For example, 
> >  
> > 03/12/2015  08:34 PM  2015-03-12_20-34-55
> > 02/03/2016  12:46 AM  2016-02-02_23-46-01
> >  
> > But builds displayed in Jenkins are all July 2016 builds as they should be.
> >  
> > I am thinking of deleting them the reclaim the space, but I am curious if 
> > anyone knows how they may be gotten here.
> >  
> > Dick Ginga, Informatics R
> > PerkinElmer Inc. | For the Better
> > HUMAN HEALTH | ENVIRONMENTAL HEALTH
> > 940 Winter Street, Waltham MA 02451
> >  
> > dick.gi...@perkinelmer.com  
> > Mobile – 508-847-1434
> > Office – 781-663-6947
> > 
> >  
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups "
> > Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to jenkinsci-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit https://urldefense.proofpoint.com/
> > v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_
> > 6C6EE445A6F6CE4E8A0FFB51B071A4E2D87374E1-2540AMERMBX02.PERKINELMER.NET=
> > CwIFaQ=0gQfHUokFL0F2NFqgtiUU5CV2wxye-keTmYLePXg16E=n5g_
> > SPEIhjGunREh9ZOnNmPNYNaFZny_aDJv8HBsQVc=
> > jmzqEAgbDdoGgsjF0lLe2Pj7MsDVuS7Wqe38xNXrAcg=
> > jxUbEA0MCPmT3aPZRfX2t7rvrDdXvqC20tRb3bCLMsY= .
> > For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A_
> > _groups.google.com_d_optout=CwIFaQ=0gQfHUokFL0F2NFqgtiUU5CV2wxye-
> > keTmYLePXg16E=n5g_SPEIhjGunREh9ZOnNmPNYNaFZny_aDJv8HBsQVc=
> > jmzqEAgbDdoGgsjF0lLe2Pj7MsDVuS7Wqe38xNXrAcg=
> > u7IhZc7AbxI6oV5L4WXrBmibWKFlyPFD18MuerOw4G0= .
> 
> -- 
> You received this message because you are subscribed to the Google Groups "
> Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://urldefense.proofpoint.com/
> v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_56552CA6-
> 2DC3CA-2D4535-2DB108-2D3D10E7F7AA82-2540beckweb.net=CwIFaQ=
> 0gQfHUokFL0F2NFqgtiUU5CV2wxye-keTmYLePXg16E=n5g_
> SPEIhjGunREh9ZOnNmPNYNaFZny_aDJv8HBsQVc=
> jmzqEAgbDdoGgsjF0lLe2Pj7MsDVuS7Wqe38xNXrAcg=
> FaB0AbOKLO2bcoFukI3OizCijpGeO4jI6if5cIbAzLE= .
> For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A_
> _groups.google.com_d_optout=CwIFaQ=0gQfHUokFL0F2NFqgtiUU5CV2wxye-
> keTmYLePXg16E=n5g_SPEIhjGunREh9ZOnNmPNYNaFZny_aDJv8HBsQVc=
> jmzqEAgbDdoGgsjF0lLe2Pj7MsDVuS7Wqe38xNXrAcg=
> u7IhZc7AbxI6oV5L4WXrBmibWKFlyPFD18MuerOw4G0= .


To: m...@beckweb.net
jenkinsci-users@googlegroups.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.2CE4008D2994%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re-2: Run Jenkins as a service and NOT headless

2016-06-09 Thread Jovan Jevric
Hi,

We're using squish for some basic GUI testing. As our gui has been developed 
with QT, this is no problem.  For Browser Testing you'll have to find a 
similiar tool which you'll have to deploy via script/CMD line then.

Greetz

 Original Message 
Subject: Re: Run Jenkins as a service and NOT headless (28-Mai-2016 5:36)
From:Simon Richter 
To:  j...@huber-online.com

> Hi,
> 
> On 27.05.2016 17:50, developer.go...@gmail.com wrote:
> 
> > How do i run Jenkins as a service but not headless. If i am doing
> > browser testing, i want to see it open Firefox, Chrome, etc. Thank you!
> 
> This is more a Windows sysadmin question:
> 
> Windows services have an option in their configuration that allows them
> access to the desktop. By default, this is disabled, and enabling it
> will allow programs to open visually.
> 
> That was the easy part. The hard part is that weird stuff will happen if
> no one is logged in, so ideally you'd ask your local Windows admin
> whether they have a good idea about that (e.g. automatic login, or
> switching the logon screen to use a small window rather than a full-screen).
> 
> 
>Simon
> 
> -- 
> You received this message because you are subscribed to the Google Groups "
> Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> jenkinsci-users/57491258.8050501%40hogyros.de.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.DB0B008985D4%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: Filter Plugin updates / Sign update information

2015-09-20 Thread Jovan Jevric
Hi Steffen,

I've run into simliar issue. That's how I've solved it.

https://groups.google.com/forum/#!msg/jenkinsci-users/J0n8zIkAsQo/OctqnzYe1A0J

cheers


processed by David.fx 
Subject: Filter Plugin updates / Sign update information (14-Sep-2015 15:09)
From:steffen.breitb...@1und1.de
To:  j...@huber-online.com


Hi everyone! 


I want to filter "malicious" plugin updates from the update center so no one 
can install them accidentially.
Just stripping the update information from the JSON doesn't work because the 
output is signed.


Is there another way to filter updates?
If not, is there a documentation about how to sign the output so Jenkins would 
accept it?


Thanks in advance


Steffen
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0b90218c-c4b7-49ae-8a9b-c509ab150211%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.F23F0078C14F%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: copy artefacts from build with specific parameter

2015-09-10 Thread Jovan Jevric
Try to set up a post build job evaluating parameter given and make your job A 
exclusive in order to prevent loss of your artifacts. 
Cheers


processed by David.fx 
Subject: copy artefacts from build with specific parameter (01-Sep-2015 18:49)
From:Alan Birtles 
To:  j...@huber-online.com


is there a way for copy artefacts to copy from the latest build of a project 
which was built with a specific parameter? e.g. copy artefacts from the last 
successful build of project A that was built with my_parameter set to true

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/862cb812-3456-4483-bee0-c46ff0deb3a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.EF8F007841FA%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins - Copy build log from master to a shared drive

2015-08-12 Thread Jovan Jevric
I run into same issue. Finally I've solved this by archiving textfile 
containining link to current workspace(Build ID and Job Name) of job which I'm 
interested in. Further I've used Log Parser plugin, whcih actually provides 
full build log propperly formatted in html and txt format which is actually to 
be arcived as well.

Afterwards I've collected all the logs I'm interested in by simply running a 
sccript on an upstream job.

Hope that helps!
Cheers


processed by David.fx 
Subject: Jenkins - Copy build log from master to a shared drive (05-Aug-2015 
15:33)
From:Rajasekar Vasudevan rajasekar...@gmail.com
To:  j...@huber-online.com


Can someone direct me here? I have a simple job configured in Jenkins on a 
WINDOWS environment (master and all slaves running on windows) and the job is 
supposed to run on a particular slave. When you build the job, the build log ( 
log.log) gets stored in ” %JENKINS_HOME%\jobs\\builds\%BUILD_NUMBER%\” on the 
master.


I do have a Jenkins workspace (which is required when you add a slave node) set 
on the slave for this job–where nothing gets stored when the job runs.


With this scenario, I would like to copy the build log (log.log file that’s 
available on the master) to a share drive. Please advise me the way to get this 
done. I have tried few plugins “Copy to slave”, “Copy Artifact Plugin” and 
ArtifactDeployer Plugin…I could not get them working to meet what I need
-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e4e9da6d-54d8-47b7-9bd6-3f2085967f8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.AE980076BAD4%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: monitor if a has NOT changed?

2015-08-12 Thread Jovan Jevric
probably by using CLI of your versioning tool, if you're using any.^^ 

Simply by executing shell/batch cmd and requesting status of file.


processed by David.fx 
Subject: monitor if a has NOT changed? (04-Aug-2015 5:53)
From:moodysma sma moody...@gmail.com
To:  j...@huber-online.com


Is there a way to check if a file has not changed given a certain time-limit?
-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/17929372-82e7-476b-80d4-31d7a4c0f5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.B6B50076BAA0%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re-2: Chicken-Egg issue with job references in Build Flow

2015-08-11 Thread Jovan Jevric
What about simply guard build execution in your flow? I've assumed you're going 
to script your things in a jenkins job. Thus you shall be able to guard jobs as 
follows:

parallel (
{
guard {
build(job1A)
} rescue {
build(job1B)
}
},
{
retry 3, {
build(job2)
}
}
Alternative would be the following:
ignore(FAILURE) {
build( send_twitter_notification )
}At least your job will return and you'll be able to do your post_mortem 
steps;-)Take a look at 
https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+PluginJoe


processed by David.fx 
Subject: RE: Chicken-Egg issue with job references in Build Flow (10-Aug-2015 
19:53)
From:Ginga, Dick dick.gi...@perkinelmer.com
To:  j...@huber-online.com


The only time I have seen this is if the downstream job never actually 
starts…e.g. Groovy error. A job that fails a step will return a handle.
 
So I have never had to do defensive programming around this. I could always fix 
the problem.
 
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Adam Daughterson
Sent: Monday, August 10, 2015 1:38 PM
To: Jenkins Users
Subject: Chicken-Egg issue with job references in Build Flow
 
Howdy Group,

I've got a build flow in which things can, and do go wrong.

When things go wrong with a downstream job I'm running, and I've created a 
reference to the build, the reference winds up being null since an exception is 
thrown so far downstream that the build() step is never completed, thus no 
handy reference to the build.

Is there any way I can tickle the DSL to wait to throw that exception until I 
return a reference to the failed build, so I can mine it for useful info after 
it fails?

In pseudocode:

parallel {
def passingJob = build(SomePassingJob)

// Works for passingJob, but not for failingJob since the exception 
prevents build() from returning valid reference
postProcessing(passingJob)
def jobShouldFail = build(SomeFailingJob)
postProcessing(failingJob)
}

def SomePostProcessing(def job)
{
println job.getProject().getName()
}


Anyone have any suggestions as to what I can do here?  The exception thrown is 
really devoid of anything useful, and I'm half-tempted to modify the exception 
handler in the Build Flow plugin to stuff the reference to the job into the 
thrown exception.

As always, all help is appreciated.

Adam
-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/81ebeeb2-7249-447a-afe7-5ed01d4bd610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E2D8653F2D%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.A47F0076A709%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow plugin -- hostnames of other parallel jobs?

2015-07-22 Thread Jovan Jevric
I'd give folowing a try:

Job execution should be bound on a node. Put matrix of hostnames/job into 
simple text file which is written in Workspace of Metajob(Main-Job). 
Pass path to this workspace via job parameter. You should be able to get this 
file via simple shell script though.


processed by David.fx 
Subject: Build Flow plugin -- hostnames of other parallel jobs? (07-Jul-2015 
15:03)
From:Adam Seering aseer...@gmail.com
To:  j...@huber-online.com


Hi all, 
I have a Build Flow that launches a bunch of test jobs in parallel.  I'd 
like to have the jobs communicate over the network.  Is there a way for one of 
the jobs to get the list of hostnames of the machines where other jobs are 
running?  (Is there a tool other than Build Flow that is better for this type 
of scenario?)


Thanks,
Adam




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4f3409f5-2f77-484c-9fff-ff0176dbfc2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.CA090075AB8B%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: Mail notification about conflicts during svn update

2015-07-12 Thread Jovan Jevric
If you're going to pull/update via shell script field, then job is aborted 
anyway with corresponiding message, shell exec. failed. 


 Original Message 
Subject: Mail notification about conflicts during svn update (11-Jul-2015 17:47)
From:Thorsten Schöning tschoen...@am-soft.de
To:  j...@huber-online.com

 Hi all,
 
 is there any easy/standard way in Jenkins to get mails if updating
 svn working copies results in unresolved conflicts? I don't want to
 wipe the Jenkins managed working copies on each commit and need to
 adopt some bits of their configuration during first setup, which may
 change for some reason. Additionally, the build may succeed even with
 the unresolved conflicts for various reasons...
 
 So is there any plugin or setting I have missed or would I need to
 implement a conflict checker on my own, configure that for each
 project and just let the build fail in case of any unresolved
 conflicts?
 
 Thanks!
 
 Mit freundlichen Grüßen,
 
 Thorsten Schöning
 
 -- 
 Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
 AM-SoFT IT-Systeme  http://www.AM-SoFT.de/
 
 Telefon...05151-  9468- 55
 Fax...05151-  9468- 88
 Mobil..0178-8 9468- 04
 
 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
 AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/msgid/
 jenkinsci-users/1645443272.20150711174752%40am-soft.de.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.FFDF00750C53%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re-2: How to stop job at run time

2015-06-29 Thread Jovan Jevric
Hi,

i would have a look, if these builds can be started as downstream-jobs, without 
waiting for those to finisch. Afterwards try polling jobs you're interested in 
instead.
Haven't adapted this approach yet, but may look like this partly:

Joe


 
import hudson.model.*
// For each job
for (item in Hudson.instance.items)
{
  jobName = item.getFullDisplayName()
  // check that job is not building
  if (!item.isBuilding())
  {
// TODO: Modify the following condition to select which jobs to affect
if (jobName == MyJob)
{
  println(Wiping out workspaces of job  + jobName)
  customWorkspace = item.getCustomWorkspace()
  println(Custom workspace =  + customWorkspace)
 
  for (node in Hudson.getInstance().getNodes())
  {
println(  Node:  + node.getDisplayName())
workspacePath = node.getWorkspaceFor(item)
if (workspacePath == null)
{
  println(Could not get workspace path)
}
else
{
  if (customWorkspace != null)
  {
workspacePath = node.getRootPath().child(customWorkspace)
  }
 
  pathAsString = workspacePath.getRemote()
  if (workspacePath.exists())
  {
workspacePath.deleteRecursive()
println(Deleted from location  + pathAsString)
  }
  else
  {
println(Nothing to delete at  + pathAsString)
  }
}
  }
}
  }
  else
  {
println(Skipping job  + jobName + , currently building)
  }
}


processed by David.fx 
Subject: Re: How to stop job at run time (29-Jun-2015 11:27)
From:Panikera Raj panikera.raj...@gmail.com
To:  j...@huber-online.com


Hi Guys,


Any update on this...






Regards,
Panikera


On Fri, Jun 26, 2015 at 5:46 PM, Panikera Raj panikera.raj...@gmail.com wrote:

Hi All,


I have a scenario where I am using Build flow project in jenkins like below:


parallel (
  {build(NightlyBuilds)},
  {build(MemoryLeaks)}
  )


so both NightlyBuilds, MemoryLeaks  are going paralally but in memoryleaks 
project i have a check point, when flag become true so i need to stop full 
project how can i achieve this.








for reference you can see screen shot as well


Thanks in advance, You help greatly appreciated.


Regards,
Panikera.


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEzR4Zwu5HdQ%2BWWra4NBuG1-E3ZsD7Oy0tNwXcNQC-wOLTaAJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.5CD20074486E%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re-2: Jenkins, update the project security via a groovy script not working

2015-06-26 Thread Jovan Jevric
test


processed by David.fx 
Subject: Re: Jenkins, update the project security via a groovy script not 
working (26-Jun-2015 10:03)
From:achala.rathnathila...@gmail.com
To:  j...@huber-online.com


Hi,


This is the way to update user access using groovy scrip:


import hudson.model.*
import jenkins.security.*
  import hudson.security.*
 
  
// For each project
for(item in Hudson.instance.items) {
  if(item.name.equalsIgnoreCase(AuthenticationChecker_SE))
  {
println(item.name)
 
 println(Current USer +User.current()); 
  
  def authorizationMatrixProperty = 
item.getProperty(AuthorizationMatrixProperty.class)
  
   User  user=  User.current();
String sID=  user.getId() ;
  authorizationMatrixProperty?.add(hudson.model.Item.CANCEL,sID)
   authorizationMatrixProperty?.add(Item.WORKSPACE,sID); 
   authorizationMatrixProperty?.add(Item.BUILD,sID); 
   authorizationMatrixProperty?.add(Run.DELETE,sID); 
   authorizationMatrixProperty?.add(Run.UPDATE,sID); 
   authorizationMatrixProperty?.add(Item.CONFIGURE,sID); 
   authorizationMatrixProperty?.add(Item.DELETE,sID); 
  authorizationMatrixProperty?.add(Item.READ,sID); 

  item.addProperty( authorizationMatrixProperty ) 
  item.save() 


  }
}


Thanks and best regards,
Achala M. Rathnathilaka
Java software Enginner,
Sri Lanka.


On Tuesday, 12 July 2011 17:32:32 UTC+5:30, RainerW wrote:
I using a Jenkin s1.409.1 and try to change the Security Settings for 
a bunch of projects via an groovy script [SCRIPT]. 

The script runs on the Master ( via Manage Jenkins\Script 
Console ). All matching projects seemed to have beed modified : E.g. 
the Job configuration dialog shows the changed Authorization Matrix, 
and the %JOB%/config.xml file is updated. 

Only Jenkins doesn't seem to get it. The build user (The one now 
should have rights) still isn't seeing the project. I can relogin, 
reload / restart Jenkins (Winstone), nothing changes. 

When i just press the save button in the job configuration ... magic 
happens. Now the the security has been updated, the build user can see 
the project immediately. 

So what did i miss? Which magic does the save Button, which i'm not 
doing? 

Cheers Rainer 

SCRIPT: 

import hudson.security.* 
import hudson.model.* 
items = hudson.model.Hudson.instance.items; 
for (job in items) { 
   if (job.name.matches(INTER.*)) { 
 println(JOB:  + job) 
 props = job.properties; 
 a = new AuthorizationMatrixProperty(); 
 // QA group, 're-add' coz there is only one property for all 
users 
 user = qa 
 a.add(Item.WORKSPACE,user); 
 a.add(Item.BUILD,user); 
 a.add(Run.DELETE,user); 
 a.add(Run.UPDATE,user); 
 a.add(Item.CONFIGURE,user); 
 a.add(Item.DELETE,user); 
 a.add(Item.READ,user); 
 // Build User 
 user = build 
 a.add(Item.WORKSPACE,user); 
 a.add(Item.BUILD,user); 
 // a.add(Run.DELETE,user); 
 a.add(Run.UPDATE,user); 
 a.add(Item.CONFIGURE,user); 
 a.add(Item.DELETE,user); 
 a.add(Item.READ,user); 
 // save it 
 job.addProperty( a ) 
 job.save() 
   } 
} 



-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b09a309b-9503-42c3-9cc5-78ff52161b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

To: achala.rathnathila...@gmail.com
jenkinsci-users@googlegroups.com
Cc: retsa...@googlemail.com

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.2D8400743878%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re-2: Jenkins, update the project security via a groovy script not working

2015-06-26 Thread Jovan Jevric


Test
processed by David.fx 
Subject: Re: Jenkins, update the project security via a groovy script not 
working (26-Jun-2015 10:03)
From:achala.rathnathila...@gmail.com
To:  j...@huber-online.com


Hi,


This is the way to update user access using groovy scrip:


import hudson.model.*
import jenkins.security.*
  import hudson.security.*
 
  
// For each project
for(item in Hudson.instance.items) {
  if(item.name.equalsIgnoreCase(AuthenticationChecker_SE))
  {
println(item.name)
 
 println(Current USer +User.current()); 
  
  def authorizationMatrixProperty = 
item.getProperty(AuthorizationMatrixProperty.class)
  
   User  user=  User.current();
String sID=  user.getId() ;
  authorizationMatrixProperty?.add(hudson.model.Item.CANCEL,sID)
   authorizationMatrixProperty?.add(Item.WORKSPACE,sID); 
   authorizationMatrixProperty?.add(Item.BUILD,sID); 
   authorizationMatrixProperty?.add(Run.DELETE,sID); 
   authorizationMatrixProperty?.add(Run.UPDATE,sID); 
   authorizationMatrixProperty?.add(Item.CONFIGURE,sID); 
   authorizationMatrixProperty?.add(Item.DELETE,sID); 
  authorizationMatrixProperty?.add(Item.READ,sID); 

  item.addProperty( authorizationMatrixProperty ) 
  item.save() 


  }
}


Thanks and best regards,
Achala M. Rathnathilaka
Java software Enginner,
Sri Lanka.


On Tuesday, 12 July 2011 17:32:32 UTC+5:30, RainerW wrote:
I using a Jenkin s1.409.1 and try to change the Security Settings for 
a bunch of projects via an groovy script [SCRIPT]. 

The script runs on the Master ( via Manage Jenkins\Script 
Console ). All matching projects seemed to have beed modified : E.g. 
the Job configuration dialog shows the changed Authorization Matrix, 
and the %JOB%/config.xml file is updated. 

Only Jenkins doesn't seem to get it. The build user (The one now 
should have rights) still isn't seeing the project. I can relogin, 
reload / restart Jenkins (Winstone), nothing changes. 

When i just press the save button in the job configuration ... magic 
happens. Now the the security has been updated, the build user can see 
the project immediately. 

So what did i miss? Which magic does the save Button, which i'm not 
doing? 

Cheers Rainer 

SCRIPT: 

import hudson.security.* 
import hudson.model.* 
items = hudson.model.Hudson.instance.items; 
for (job in items) { 
   if (job.name.matches(INTER.*)) { 
 println(JOB:  + job) 
 props = job.properties; 
 a = new AuthorizationMatrixProperty(); 
 // QA group, 're-add' coz there is only one property for all 
users 
 user = qa 
 a.add(Item.WORKSPACE,user); 
 a.add(Item.BUILD,user); 
 a.add(Run.DELETE,user); 
 a.add(Run.UPDATE,user); 
 a.add(Item.CONFIGURE,user); 
 a.add(Item.DELETE,user); 
 a.add(Item.READ,user); 
 // Build User 
 user = build 
 a.add(Item.WORKSPACE,user); 
 a.add(Item.BUILD,user); 
 // a.add(Run.DELETE,user); 
 a.add(Run.UPDATE,user); 
 a.add(Item.CONFIGURE,user); 
 a.add(Item.DELETE,user); 
 a.add(Item.READ,user); 
 // save it 
 job.addProperty( a ) 
 job.save() 
   } 
} 



-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b09a309b-9503-42c3-9cc5-78ff52161b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.2D8600743873%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.