-
Activate
Chuck Norris Plugin
â This script activates Chuck Norris plugin for all jobs
in your Jenkins server
-
Add
a Maven Installation, Tool Installation, Modify System Config
-
Add
a new label to agents meeting a condition
â This script shows how to alter the
agent nodes' label membership. In this case we create a new label if the
existing label contains a string. It has been tested from the Jenkins command
window.
-
Add
notification plugin to every job
â This script will add the Notification
Plugin to every job.
-
Allow
broken build claiming on every jobs
â With the following simple script, you
can activate the option on every jobs of your server in just one go.
-
Batch-Update
Mercurial branch that is checked out
â Updates for multiple jobs which branch
will be checked out from Hg
-
Bulk
rename projects
-
Change
JVM Options in all Maven tasks of Freestyle Jobs
â This script find all Maven
Tasks registered in freestyle jobs and replace JVM Options by a new value.
-
Change
publish over SSH configuration
-
Change
SCMTrigger for each project to disable during the night and the week-end
â
This script lets you easily change all jobs running every minutes so that it
gets disabled between 21:00 and 07:00 and on Saturday and Sunday.
-
Change
Version-Number in SVN-path
-
Clone
all projects in a View
â This script enumerates all projects belonging to a
specific view and clones them.
-
Convert
standard mail notifications to use the Mail-Ext Publisher plugin
â This script
replace mail notifications in all projects by Mail-Ext publisher plugin and
re-uses existing recipients.
-
Delete
tmp files left in workspace-files
â This scripts deletes all the tmp files
left in workspace-files directory after the build. On windows servers this
seems pretty common.
-
Delete
workspace for all disabled jobs
â Deletes the workspace for all disabled jobs
to save space
-
Disable all
jobs
â This script disables all jobs in your Jenkins server
-
Display
Information About Nodes
â This scripts displays a bunch of information about
all the agent nodes.
-
Display
job parameters
â This scripts displays the parameters for all the jobs along
with their default values (if applicable).
-
Display
jobs group by the build steps they use
-
Display
list of projects that were built more than 1 day ago.
â This script to display
list of projects that were built more than 1 day ago.
-
Display
mail notifications recipients
â This script displays for all jobs the list of
mail recipients used for notifications.
-
Display
monitors status
â Jenkins uses monitors to validate various behaviors. If you
dismiss one, Jenkins will never propose you to reactivate it. This script
allows you to check the status of all monitors and to reactivate them.
-
Display
the number of jobs using SCM Polling from Freestyle, Pipeline and Maven
-
Display
timer triggers
â This scripts displays the timer triggers for all the jobs in
order to better arrange them.
-
Display
Tools Location on All Nodes
â This script can help to get Jenkins tools
location on all your agents
-
Enable
Timestamper plugin on all jobs
â With the following simple script, you can
activate the option on every jobs of your server in just one go.
-
Failed Jobs â
This scripts displays a list of all failed jobs. Addon: restart them.
-
Find
builds currently running that has been executing for more than N seconds
-
Grant
Cancel Permission for user and group that have Build permission
â This script
will go through all groups and users in both Global security and per job
security settings.
-
Invalidate
Jenkins HTTP sessions
â This script can monitor and invalidate HTTP sessions
if there are many open ones on your server.
-
Manually
run log rotation on all jobs
â Runs log rotation on all jobs to free space
-
Monitor
and Restart Offline Agents
â This script can monitor and restart offline nodes
if they are not disconnected manually.
-
Monitoring
Scripts
â Several scripts to display data about http sessions, threads,
memory, JVM or MBeans, when using the Monitoring plugin.
-
My Test Grovvy
-
Parameterized
System Groovy script
â This script will demonstrate how to get parameters in a
system groovy script.
-
Preselect
username in Maven Release Build
-
Printing
a list of credentials and their IDs
-
Remove
all disabled modules in Maven jobs
â To remove all disabled modules in Maven
jobs
-
Remove
Deployed Artifacts Actions
â This script is used to remove the Deployed
Artifacts list that is uselessly stored for each build by the Artifact Deployer
Plugin.
-
Remove
Git Plugin BuildsByBranch BuildData
â This script is used to remove the static
list of BuildsByBranch that is uselessly stored for each build by the Git
Plugin.
-
Set
GitBlitRepositoryBrowser with custom settings on all repos
â This scripts
allows to update the repo browser. Can be adapted to any other browser, not
only gitblit.
-
Update
maven jobs to use the post build task to deploy artifacts
â This script
updates all maven jobs having a deploy goal by install and activate the post
build step to deploy artifacts at the end of the build
-
Update SVN
Browser
-
Wipe
out workspaces of all jobs
â This script wipes out the workspaces of all jobs
on your Jenkins server
-
Wipe
workspaces for a set of jobs on all nodes
â The script wipes workspaces of
certain jobs on all nodes.