Giter VIP home page Giter VIP logo

mr's Introduction

What is this

mr is command line client for Jenkins, with just the ability to configure and start builds remotely.

This tools makes sense when you have parametrized jobs that you are manually starting from Jenkins' UI, which is error-prone and tedious (unless you like checklists).

Features (so far)

  • starts a build from the command line
  • prints link when the build starts
  • overrides parameters from the command line
  • uses local configuration (sample), which you can check into version control
  • stores credentials securely (i.e. keychain on macOS)
  • no need to fire up the browser
  • can customize SSL certificates (useful in a corporate environment)

Limitations (so far)

  • supports only parametrized pipelines
  • only tested on macOS, but should work on Windows and Linux too

Installation

There is no PYPi package yet.

Installation from source (needs Python 3 and poetry):

  1. clone this repo
  2. run poetry build
  3. install with python3 -m pip install dist/WHEEL_FILE_NAME

Usage

  1. get a personal access token for your Jenkins server
  2. add a corresponding server in the configuration file
  3. add one or more tasks for the server in the configuration file
  4. run mr start YOUR_TASK_NAME

mr will look up your credentials in the keychain, and start the build. If your credentials are not in the keychain already, mr will ask you to enter your token and then save it.

Work in progress

Features:

  • catch ctrl-c
  • option to wait for build completion (polling for feedback)

Tech debt:

  • use objects instead of dictionaries for configuration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.