VirtualTam's bookmarks
8 bookmarks found
Page 1 of 1
-
Jenkins Job DSL Plugin
2018-09-25 - https://github.com/jenkinsci/job-dsl-plugin/wiki
- https://stackoverflow.com/questions/47206215/environmentvariables-not-working-for-jenkins-job-dsl-and-pipeline-jobs
- https://stackoverflow.com/questions/33792633/using-jenkins-job-dsl-to-set-polling-ignores-commits-in-certain-paths-for-git
- https://github.com/jenkinsci/job-dsl-plugin/wiki/User-Power-Moves
- https://stackoverflow.com/questions/43699190/seed-job-asks-for-script-approval-in-jenkins
- https://groups.google.com/forum/#!msg/job-dsl-plugin/jueturR7sCo/2BCz2rRWBAAJ
- https://github.com/Praqma/JenkinsAsCodeReference
-
Jenkins - Display Information About Nodes
2016-04-12 1for (agent in hudson.model.Hudson.instance.slaves) { 2 println('===================='); 3 println('Name: ' + agent.name); 4 println('getLabelString: ' + agent.getLabelString()); 5 println('getNumExectutors: ' + agent.getNumExecutors()); 6 println('getRemoteFS: ' + agent.getRemoteFS()); 7 println('getMode: ' + agent.getMode()); 8 println('getRootPath: ' + agent.getRootPath()); 9 println('getDescriptor: ' + agent.getDescriptor()); 10 println('getComputer: ' + agent.getComputer()); 11 println('\tcomputer.isAcceptingTasks: ' + agent.getComputer().isAcceptingTasks()); 12 println('\tcomputer.isLaunchSupported: ' + agent.getComputer().isLaunchSupported()); 13 println('\tcomputer.getConnectTime: ' + agent.getComputer().getConnectTime()); 14 println('\tcomputer.getDemandStartMilliseconds: ' + agent.getComputer().getDemandStartMilliseconds()); 15 println('\tcomputer.isOffline: ' + agent.getComputer().isOffline()); 16 println('\tcomputer.countBusy: ' + agent.getComputer().countBusy()); 17 //if (agent.name == 'NAME OF NODE TO DELETE') { 18 // println('Shutting down node!!!!'); 19 // agent.getComputer().setTemporarilyOffline(true,null); 20 // agent.getComputer().doDoDelete(); 21 //} 22 println('\tcomputer.getLog: ' + agent.getComputer().getLog()); 23 println('\tcomputer.getBuilds: ' + agent.getComputer().getBuilds()); 24}
-
item = Jenkins.instance.getItemByFullName("your-job-name-here") // THIS WILL REMOVE ALL BUILD HISTORY item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)
-
Strings | Real Groovy - Documentation
2014-05-15 -
TREPALIUM rehearsal - YouTube
2013-07-01
Page 1 of 1