code: function last_result(jobName, customParams, callback) {
        var _doArgs45 = doArgs(arguments, ['string', ['object', {}], 'function']);
  
        var _doArgs46 = _slicedToArray(_doArgs45, 3);
  
        jobName = _doArgs46[0];
        customParams = _doArgs46[1];
        callback = _doArgs46[2];
  
  
        this.job_info(jobName, function (error, data) {
          if (error) {
            callback(error, data);
            return;
          }
  
          var lastResultUrl = data.lastBuild.url;
  
          doRequest({
            urlPattern: [lastResultUrl + API, jobName]
          }, customParams, callback);
        });
      }
docs: Get the last result for a job