All Implemented Interfaces:
ExtensionPoint, Action, ModelObject

@Extension public class JobAPI extends AbstractWorkflowJobActionHandler
API Action handler to return WorkflowJob info.

Bound to ${{rootURL}/job/<jobname>/wfapi/*}

Author:
tom.fennelly@gmail.com
  • Constructor Details

    • JobAPI

      public JobAPI()
  • Method Details

    • getUrl

      public static String getUrl(org.jenkinsci.plugins.workflow.job.WorkflowJob job)
    • getDescribeUrl

      public static String getDescribeUrl(org.jenkinsci.plugins.workflow.job.WorkflowJob job)
    • getRunsUrl

      public static String getRunsUrl(org.jenkinsci.plugins.workflow.job.WorkflowJob job)
    • doRuns

      public List<RunExt> doRuns(@QueryParameter String since, @QueryParameter boolean fullStages)
      Get all Workflow Job runs/builds since the specified run/build name.
      Parameters:
      since - The run/build name at which to stop returning (inclusive), or null/empty if all runs/builds are to be returned.
      fullStages - Return the stageNodes within each stage
      Returns:
      The runs list.
    • doIndex

      public JobExt doIndex()
    • doDescribe

      public JobExt doDescribe()