lib/main.js
function delete_build(jobName, buildNumber, customParams, callback) {
      var _doArgs21 = doArgs(arguments, ['string', 'string|number', ['object', {}], 'function']);

      var _doArgs22 = _slicedToArray(_doArgs21, 4);

      jobName = _doArgs22[0];
      buildNumber = _doArgs22[1];
      customParams = _doArgs22[2];
      callback = _doArgs22[3];


      doRequest({
        method: 'POST',
        urlPattern: [BUILD_DELETE, jobName, buildNumber],
        noparse: true
      }, customParams, function (error, data) {
        if (error) {
          callback(error, data);
        } else {
          data.body = 'Build ' + buildNumber + ' deleted.';
          callback(null, data);
        }
      });
    }
function delete_build(jobName, buildNumber, customParams, callback) {
      var _doArgs21 = doArgs(arguments, ['string', 'string|number', ['object', {}], 'function']);

      var _doArgs22 = _slicedToArray(_doArgs21, 4);

      jobName = _doArgs22[0];
      buildNumber = _doArgs22[1];
      customParams = _doArgs22[2];
      callback = _doArgs22[3];


      doRequest({
        method: 'POST',
        urlPattern: [BUILD_DELETE, jobName, buildNumber],
        noparse: true
      }, customParams, function (error, data) {
        if (error) {
          callback(error, data);
        } else {
          data.body = 'Build ' + buildNumber + ' deleted.';
          callback(null, data);
        }
      });
    }
function delete_build ( jobName , buildNumber , customParams , callback ) { var _doArgs21 = doArgs ( arguments , [ 'string' , 'string|number' , [ 'object' , { } ] , 'function' ] ) ; var _doArgs22 = _slicedToArray ( _doArgs21 , 4 ) ; jobName = _doArgs22 [ 0 ] ; buildNumber = _doArgs22 [ 1 ] ; customParams = _doArgs22 [ 2 ] ; callback = _doArgs22 [ 3 ] ; doRequest ( { method : 'POST' , urlPattern : [ BUILD_DELETE , jobName , buildNumber ] , noparse : true } , customParams , function ( error , data ) { if ( error ) { callback ( error , data ) ; } else { data . body = 'Build ' + buildNumber + ' deleted.' ; callback ( null , data ) ; } } ) ; }
Deletes build data for certain job
Deletes build data for certain job