Class JobMetadata

java.lang.Object
io.jenkins.plugins.mergify.JobMetadata
All Implemented Interfaces:
Action, ModelObject

public class JobMetadata extends Object implements Action
  • Constructor Details

    • JobMetadata

      public JobMetadata(Run<?,?> run)
  • Method Details

    • upgradeRunnerInfo

      public void upgradeRunnerInfo(RunnerInfo info)
    • getPipelineName

      public String getPipelineName()
      The pipeline and job name of the job's runs: the job's full name, its JOB_NAME ("folder/job"), which the test clients name its tests after. Not its display name ("folder ยป job"), which the user can change and a pull request job takes from the pull request title. A branch or pull request job of a multibranch project takes the project's full name (JOB_NAME without its branch segment), so every branch and pull request shares one history.
    • setSpanContext

      public void setSpanContext(io.opentelemetry.api.trace.SpanContext spanContext)
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • setCommonSpanAttributes

      public void setCommonSpanAttributes(io.opentelemetry.api.trace.Span span)
    • setCommonSpanAttributes

      public void setCommonSpanAttributes(io.opentelemetry.api.trace.Span span, RunnerInfo runnerOverride)
    • addRepositoryURL

      public void addRepositoryURL(String name, String url)
    • setSCMCheckoutInfoFromEnvs

      public void setSCMCheckoutInfoFromEnvs(EnvVars envVars)
    • setSCMCheckoutInfoFromBuildData

      public void setSCMCheckoutInfoFromBuildData(Run<?,?> run)
    • setSCMCheckoutInfoFromRevision

      public void setSCMCheckoutInfoFromRevision(Run<?,?> run)
      The head a build of a multibranch project was started for, which its checkouts do not reliably give: a shared library, even one hosted in the job's own repository, or another ref can be checked out before it, and a build may check out nothing. A branch or tag build reports its name and commit. A pull request build checks out the pseudo-branch "PR-123" and, under the merge strategy, a merge commit made on the agent that GitHub never sees: it reports the pull request's source branch and the commit at its tip instead, as a GitHub Actions run of a pull request does, so that it is found by the pull request.
    • setSCMCheckoutInfoFromGitSCM

      public void setSCMCheckoutInfoFromGitSCM(hudson.plugins.git.GitSCM gitSCM, org.jenkinsci.plugins.gitclient.GitClient client) throws InterruptedException
      Throws:
      InterruptedException