0.1.0 • Published 8 years ago

node-jenkins-slave v0.1.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
8 years ago

node-jenkins-slave

Facilitate the connection to a jenkin server and the disconnection

Java must be installed

var jenkinsSlave = require('node-jenkins-slave');
var options = {
   name: <string>,          // name of the node in jenkins 
   secret: <string>,        // secret key in jenkins
   jenkinsHost: <string>,   // url of jenkins server
   jar: <path>, (optionnal)// path where the file slave.jar must be downloaded
   log: <path>, (optionnal) // filename of the log file
   pid: <path>, (optionnal) // filename of the file storing the pid of the current jenkins slave engine
};

jenkinsSlave.connect(options, function(err){
    // connection to jenkins established
});
jenkinsSlave.connect(options, function(err){
    // disconnected fromjenkins
});