Re: Disk space is too low. Only "less than a GB" left on /var/lib/jenkins

2018-08-06 Thread Amit Ghatwal
Few methods which we employ to save on space is by using 1. any "post-build" for any job to delete job workspace if not needed. 2. Limit the number of job build logs to minimum - say around 2-4. 3. Install this disk usage plugin - https://wiki.jenkins.io/display/JENKINS/Disk+Usage+Plugin which

Re: Can i run master and slave on same machine

2018-08-06 Thread Amit Ghatwal
I have set up a single machine to run as jenkins- master+slave successfully many a times , been able to deploy jobs successfully as well on the machine at "Remote root directory" for the added slave node .Every job deployed creates a folder with the job name . Can you elaborate more on where

Re: Creating groovy script to configure slave node properties >> "Restrict jobs execution at node"

2016-10-05 Thread Amit Ghatwal
ns-ci.org/hudson/model/Node.Mode.html> mode, >> String >> <http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true> >> labelString, >> ComputerLauncher >> <http://javadoc.jenkins-ci.org/hudson/slaves/ComputerLaunch

Re: Creating groovy script to configure slave node properties >> "Restrict jobs execution at node"

2016-10-05 Thread Amit Ghatwal
ionStrategy > <http://javadoc.jenkins-ci.org/hudson/slaves/RetentionStrategy.html> > retentionStrategy, > *List > <http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true> extends NodeProperty > <http://javadoc.jenkins-

Re: Creating groovy script to configure slave node properties >> "Restrict jobs execution at node"

2016-10-04 Thread Amit Ghatwal
Hi Victor, Thanks for quick comment. I had already looked at the below repo of "job-restriction plugin" - https://github.com/jenkinsci/job-restrictions-plugin/tree/master/src/main/java/com/synopsys/arc/jenkinsci/plugins/jobrestrictions However i am unable to figure how do i change the slave

Creating groovy script to configure slave node properties >> "Restrict jobs execution at node"

2016-10-03 Thread Amit Ghatwal
Hi All, I am trying to automate the process of creating a slave node on jenkins server , creating users and then and also allow certain users to access only certain slave nodes. The automation is to be achieved via a groovy script. Here's my script thus far import jenkins.model.* import