@zf/jenkins-cli
v0.2.0
Published
jenkins on commandline
Downloads
3
Readme
jenkins-cli
npm i -g @zf/jenkins-cli
projects
export JENKINS_URL=http://admin:password@localhost:8080
jenkins list
# filter by status
jenkins list --building
# filter by name
jenkins list <partialname>
# enable/disable
jenkins enable <project>
jenkins disable <project>
# get project defination
jenkins dump <project>
builds
# trigger build
jenkins build <project>
# get last build of project
jenkins last <project>
# list builds of project
jenkins builds <project>
# get console output
jenkins output <project> <build>
artifacts
# list artifacts of the last stable build
jenkins artifacts <project>
# download artifacts
jenkins donwload <project>
# only download deb packages
jenkins donwload <project> --ext deb
multibranch project
jenkins download <project> <branch>
export/import
jenksin export --path <myfolder>
jenksin import --path <myfolder>