code: function (jobName, customParams, callback) {
        [jobName, customParams, callback] = doArgs(arguments, ['string', ['object', {}], 'function']);
  
        this.job_info(jobName, function (error, data) {
          if (error) {
            callback(error, data);
            return;
          }
  
          const lastResultUrl = data.lastBuild.url;
  
          doRequest({
            urlPattern: [lastResultUrl + API, jobName]
          }, customParams, callback);
        });
      }
docs: Get the last result for a job
  
  @param {string} jobName
  @param {object|undefined} customParams is optional
  @param {function} callback