Package io.jenkins.plugins.mergify
Class JobMetadata
java.lang.Object
io.jenkins.plugins.mergify.JobMetadata
- All Implemented Interfaces:
Action,ModelObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRepositoryURL(String name, String url) 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.voidsetCommonSpanAttributes(io.opentelemetry.api.trace.Span span) voidsetCommonSpanAttributes(io.opentelemetry.api.trace.Span span, RunnerInfo runnerOverride) voidsetSCMCheckoutInfoFromBuildData(Run<?, ?> run) voidsetSCMCheckoutInfoFromEnvs(EnvVars envVars) voidsetSCMCheckoutInfoFromGitSCM(hudson.plugins.git.GitSCM gitSCM, org.jenkinsci.plugins.gitclient.GitClient client) voidsetSCMCheckoutInfoFromRevision(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.voidsetSpanContext(io.opentelemetry.api.trace.SpanContext spanContext) voidupgradeRunnerInfo(RunnerInfo info)
-
Constructor Details
-
JobMetadata
-
-
Method Details
-
upgradeRunnerInfo
-
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
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
setCommonSpanAttributes
public void setCommonSpanAttributes(io.opentelemetry.api.trace.Span span) -
setCommonSpanAttributes
public void setCommonSpanAttributes(io.opentelemetry.api.trace.Span span, RunnerInfo runnerOverride) -
addRepositoryURL
-
setSCMCheckoutInfoFromEnvs
-
setSCMCheckoutInfoFromBuildData
-
setSCMCheckoutInfoFromRevision
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
-