Giter Club home page Giter Club logo

jenkinsator's Introduction

jenkinsator

Build Status

How to install it

Just download jenkinsator.py file and follow the instructions.

How to use it

I.e. replace all occurances of SOURCE by DEST for the list of jobs provided in file jobs.txt:

python jenkinsator.py JENKINS_URL --login=LOGIN --password=PASSWORD job --replace "#SOURCE#DEST" --list-from-file=jobs.txt

For more details check:

python jenkinsator.py --help

How to provide credentials in secure way

The tool supports two ways: secure and in-secure (as it was shown in example above). The secure way is a little bit more complex and it uses the magic of .netrc in case of Linux/Mac or _netrc on Windows. So, all you need is to create a ~/.netrc file this follow content:

default
        login <your_login>
        password <your_password>

or

machine <jenkins_host_name>
        login <your_login>
        password <your_password>

If you just created the .netrc file, you must change the permission to 600 using the follow command:

chmod 600 ~/.netrc

Done! Now jenkinsator will be able to get the credentials from this file.

Supported features

  • Replace pattern in job/node config
  • Create new job from config.xml file
  • Dump job configuration to thie
  • Enable/disable/delete the job
  • Enable/disable/delete the node
  • List all plugins
  • Execute custom Groovy script

Road map

  • Change the job configuration
  • Print queue content

Work in Progress! So far jenkinsator was tested with python3.4+ only.

jenkinsator's People

Contributors

jimilian avatar

Watchers

James Cloos avatar Oleksnadr Rudenko avatar

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.