Skip to main content

A simple tool to rapidly create and debug jenkins pipelines

Project description

Jenkins Rapid

A commandline tool to quickly develop/debug Jenkins piepline using jenkinsfiles

Features

  • Upload jenkinsfile from local
  • Create/Update jobs (with parameters too)
  • Triggers builds
  • Streams log output to terminal
  • Stop running jobs you’ve started
  • Delete jenkins jobs
  • Work with Jenkinsfiles directly from your favorite IDE

Usage:

Create and trigger job

        $ jrp --job <job_name> --file <jenkinsfile >--url <jenkins_url> --user <username> --token <user_api_tokern>

Install

    $ pip3 install jenkins-rapid

Config

  • Only generated API tokens will work

  • Environment variables can be set for the following values for jenkins url and user credentials and will take presedence over commandline arguments

      export JENKINS_URL=http://localhost:8080
      export JENKINS_USER=admin
      export JENKINS_PASSWORD=<jenkins_api_token>
    
    
      # Deletes job
          $ jrp delete --job <job_name> --url <jenkins_url> --user <username> --token <user_api_tokern>
    

Passing build parameters

Build parameters can be passed using a yaml file. See example below

    ---
    - name: PARAM1
      value: some value
    - name: TEST_PARAM2
      value: 19
    - name: TEST_PARAM3
      value: 999
    - name: TEST_PARAM4
      value: morevalues
    - name: SOME_PARAM
      value: obscure value

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jenkins_rapid-0.4.7.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file jenkins_rapid-0.4.7.tar.gz.

File metadata

  • Download URL: jenkins_rapid-0.4.7.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5

File hashes

Hashes for jenkins_rapid-0.4.7.tar.gz
Algorithm Hash digest
SHA256 1022d15a3f26f47fc0ab93d4b3eb58e28b97744304adebcdb61b2c1a8be927cb
MD5 3a58a7fe30240fc47e4e247c8e0f01e8
BLAKE2b-256 7e30a85d9ed8ba58aa59055fc622e9e85387790eafba7398e85812bc5853429a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page