An open API service indexing awesome lists of open source software.

https://github.com/zweifisch/jenkins-cli


https://github.com/zweifisch/jenkins-cli

cli jenkins

Last synced: about 2 months ago
JSON representation

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
```