Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dougsland/jenkinsctl
Jenkins CLI
https://github.com/dougsland/jenkinsctl
Last synced: 10 days ago
JSON representation
Jenkins CLI
- Host: GitHub
- URL: https://github.com/dougsland/jenkinsctl
- Owner: dougsland
- License: apache-2.0
- Created: 2021-06-07T14:29:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T17:50:54.000Z (about 3 years ago)
- Last Synced: 2024-12-19T13:30:40.386Z (22 days ago)
- Language: Go
- Size: 19.4 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**jenkinsctl** is a jenkins CLI based on [gojenkins](https://github.com/bndr/gojenkins) library. 🚀
:one: Generate a token for the username that will manage the jenkins.
- Log in to Jenkins.
- Click you name (upper-right corner).
- Click Configure (left-side menu).
- Use "Add new Token" button to generate a new one then name it.
- You must copy the token when you generate it as you cannot view the token afterwards.:two: Create the `configuration directory` and the `config.json file`
```
$ mkdir -p ~/.config/jenkinsctl/
$ pushd ~/.config/jenkinsctl/
$ vi config.json
{
"Server": "https://jenkins.mydomain.com",
"JenkinsUser": "jenkins-operator",
"Token": "1152e8e7a88f6c7ef605844b35t5y6i"
}
$ popd
```:three: Build the jenkinsctl
```
$ cd $GOPATH (The same as: go env | grep PATH)
$ cd src/github.com/
$ git clone https://github.com/dougsland/jenkinsctl.git
$ cd jenkinsctl
$ make
``````
$ ./jenkinsctl
Client for jenkins, manage resources by the jenkinsUsage:
jenkinsctl [command]Available Commands:
create Create a resource in Jenkins
delete Delete a resource from Jenkins
disable Disable a resource in Jenkins
download download related commands
enable Enable a resource in Jenkins
get Get a resource from Jenkins
help Help about any command
plugins Commands related to pluginsFlags:
--config string Path to config file
-h, --help help for jenkinsctl
-v, --version version for jenkinsctlUse "jenkinsctl [command] --help" for more information about a command.
```:rocket: :rocket: :rocket: :rocket: