Giter VIP home page Giter VIP logo

jenkins_node_manager's Introduction

jenkins_node_manager

Jenkins Node Manager is a set of scripts that allow you to connect a node to a jenkins master and to controll scalling. It can be used to connect a jenkins node to a specified master using JNLP for any unclaimed nodes listed on the master. This works with jenkins systems that use authentication. This is valuable when in a scenario where you want to be able to scale up or down nodes on a regular basis.

Setup

  1. On the master, create your nodes and set them up for Java web start connections. I recommend you just make a bunch of copies of these so they can be used by nodes as you need them, unless you use the jenkins-cli.jar to create new nodes as needed.

  2. From your node, you will need to set 4 environment variables

     JENKINS_HOSTNAME
     JENKINS_PORT
     JENKINS_USERNAME
     JENKINS_API_KEY
    
  3. Run the connection script from the node.

     ruby connect_to_master.rb
    

You can also specify a node name to try to connect to...

    ruby connect_to_master.rb node12

Recommended use: Have a startup script on your jenkins node that will

  1. execute setting environment variables
  2. cloneing this repo
  3. Createing new nodes on jenkins (this can be done with jenkins-cli.jar)
  4. and executing this script.

Nodes to be ignored for scaling purposes

Any node with a name containing DoNotMerge (case-insensitive) will be ignored by this script as it figures out how to scale

jenkins_node_manager's People

Contributors

thejefe avatar carols10cents avatar itobler avatar

Watchers

James Cloos avatar Mark Frey avatar James Wrubel avatar André H avatar Steve Robbibaro 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.