Index

Table of contents

jenkins

latest jenkins war
http://mirrors.jenkins.io/war-stable/latest/jenkins.war
starting jenkins
java -jar jenkins.war

system properties

skip setup wizard
-Djenkins.install.runSetupWizard=false
custom workspace directory for projects
-Djenkins.model.Jenkins.workspacesDir='${JENKINS_HOME}/workspaces/${ITEM_FULL_NAME}/workspace'

environment variables

JENKINS_HOME=~/.jenkins

jenkins cli

jenkins cli jar location (note: war unpacks on run)
[jenkins_war]:/WEB-INF/lib/cli-[version].jar
cli help
java -jar cli-*.jar
command with authentication
java -jar cli-*.jar -s http://localhost:8080/ -auth [user]:[password] -webSocket [command]
list api
java -jar cli-*.jar -s http://localhost:8080/ -webSocket help
list installed plugins
java -jar cli-*.jar -s http://localhost:8080/ -webSocket list-plugins
install plugins
java -jar cli-*.jar -s http://localhost:8080/ -webSocket install-plugin [plugin]... -restart