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) voidsetSCMCheckoutInfoFromPullRequest(Run<?, ?> run) The head of a pull request build of a multibranch project, which its checkout does not give: it checks out the pseudo-branch "PR-123" and, under the merge strategy, a merge commit made on the agent that GitHub never sees.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
-
setSCMCheckoutInfoFromPullRequest
The head of a pull request build of a multibranch project, which its checkout does not give: it checks out the pseudo-branch "PR-123" and, under the merge strategy, a merge commit made on the agent that GitHub never sees. The build 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
-