https://github.com/zweifisch/jenkins-cli
https://github.com/zweifisch/jenkins-cli
cli jenkins
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zweifisch/jenkins-cli
- Owner: zweifisch
- Created: 2018-03-12T14:01:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T14:07:14.000Z (over 8 years ago)
- Last Synced: 2025-10-05T16:53:16.153Z (9 months ago)
- Topics: cli, jenkins
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jenkins-cli
``` sh
npm i -g @zf/jenkins-cli
```
## projects
```sh
export JENKINS_URL=http://admin:password@localhost:8080
jenkins list
# filter by status
jenkins list --building
# filter by name
jenkins list
# enable/disable
jenkins enable
jenkins disable
# get project defination
jenkins dump
```
## builds
``` sh
# trigger build
jenkins build
# get last build of project
jenkins last
# list builds of project
jenkins builds
# get console output
jenkins output
```
## artifacts
```sh
# list artifacts of the last stable build
jenkins artifacts
# download artifacts
jenkins donwload
# only download deb packages
jenkins donwload --ext deb
```
## multibranch project
```sh
jenkins download
```
## export/import
```sh
jenksin export --path
jenksin import --path
```