jenkinsctl

command module
v0.0.0-...-f060ab4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README ¶

jenkinsctl is a jenkins CLI based on gojenkins library. 🚀

1⃣ 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.

2⃣ 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

3⃣ Build the jenkinsctl

$ git clone https://github.com/dougsland/jenkinsctl.git
$ cd jenkinsctl
$ make
$ ./jenkinsctl
Client for jenkins, manage resources by the jenkins

Usage:
  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 plugins

Flags:
      --config string   Path to config file
  -h, --help            help for jenkinsctl
  -v, --version         version for jenkinsctl

Use "jenkinsctl [command] --help" for more information about a command.

🚀 🚀 🚀 🚀

Documentation ¶

Overview ¶

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories ¶

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL