Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecodesmith/jenkins-cli-wrapper
A simple and fast CLI to develop Jenkins builds on the command line
https://github.com/thecodesmith/jenkins-cli-wrapper
Last synced: 23 days ago
JSON representation
A simple and fast CLI to develop Jenkins builds on the command line
- Host: GitHub
- URL: https://github.com/thecodesmith/jenkins-cli-wrapper
- Owner: thecodesmith
- License: mit
- Created: 2022-03-14T19:23:14.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T23:41:32.000Z (about 1 year ago)
- Last Synced: 2024-11-01T20:52:13.697Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 166 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins CLI Wrapper
_A simple and fast CLI to develop Jenkins builds on the command line_
## Features
- [ ] Repository-aware: project metadata enables seamless pipeline operations for multibranch pipelines
- [ ] Branch-aware pipeline replay and pipeline logs
- [ ] Replay uses Jenkinsfile in current directory
- [x] Jenkinsfile linting: defaults to Jenkinsfile in current directory
- [ ] Open pipeline in browser## Usage
jenkinsw [command] [options]
Commands:
context Configure multiple Jenkins servers and switch between them
help Display help info for wrapper commands
init Download jenkins-cli.jar from Jenkins server and initialize API token
lint Lint a Declarative Jenkinsfile
logs Display the logs for a multibranch pipeline job
replay Replay a multibranch pipeline job
version Display version info for the Jenkins server, CLI and wrapperjenkinsw lint # runs declarative-linter on Jenkinsfile in current directory
jenkinsw lint -j foo/Jenkinsfile # runs declarative-linter on Jenkinsfile specified by pathjenkinsw context list
jenkinsw context add
> Jenkins host URL:
> Jenkins user:
> Jenkins API key:## Development
Install the Cobra CLI:
make setup
Generate a new CLI command:
cobra-cli add -a '' -l mit --viper
Generate a new CLI subcommand:
cobra-cli add -p -a '' -l mit --viper