lib/cli/job.js
function update(cb) {
  return function (name, configFile, args) {
    function resultCb(result) {
      console.log(text.__('Job %s was updated successfully'), name);
    }
    function jenkinsCb(jenkins) {
      var config = fs.readFileSync(configFile).toString();
      jenkins.updateJob(name, config, cli.exitCb(null, resultCb));
    }
    cb(args, jenkinsCb);
  };
}
function update(cb) {
  return function (name, configFile, args) {
    function resultCb(result) {
      console.log(text.__('Job %s was updated successfully'), name);
    }
    function jenkinsCb(jenkins) {
      var config = fs.readFileSync(configFile).toString();
      jenkins.updateJob(name, config, cli.exitCb(null, resultCb));
    }
    cb(args, jenkinsCb);
  };
}
function update ( cb ) { return function ( name , configFile , args ) { function resultCb ( result ) { console . log ( text . __ ( 'Job %s was updated successfully' ) , name ) ; } function jenkinsCb ( jenkins ) { var config = fs . readFileSync ( configFile ) . toString ( ) ; jenkins . updateJob ( name , config , cli . exitCb ( null , resultCb ) ) ; } cb ( args , jenkinsCb ) ; } ; }
Get a handler that calls Jenkins API to update a job with specific configuration.
Success job update message will be logged when there's no error.

@param {Function} cb: callback for argument handling
@return Jenkins API handler function
Get a handler that calls Jenkins API to update a job with specific configuration . Success job update message will be logged when there s no error .