public abstract class DatadogBasePipelineLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CI_PROVIDER |
protected static String |
HOSTNAME_NONE |
Constructor and Description |
---|
DatadogBasePipelineLogic() |
Modifier and Type | Method and Description |
---|---|
protected GitCommitAction |
buildGitCommitAction(Run<?,?> run,
org.jenkinsci.plugins.gitclient.GitClient gitClient,
BuildPipelineNode pipelineNode) |
protected GitRepositoryAction |
buildGitRepositoryAction(Run<?,?> run,
org.jenkinsci.plugins.gitclient.GitClient gitClient,
BuildPipelineNode pipelineNode) |
protected String |
buildOperationName(BuildPipelineNode current) |
protected BuildPipelineNode |
buildPipelineNode(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode) |
protected BuildPipelineNode |
buildPipelineTree(org.jenkinsci.plugins.workflow.graph.FlowEndNode flowEndNode) |
abstract void |
execute(Run run,
org.jenkinsci.plugins.workflow.graph.FlowNode flowNode) |
protected org.jenkinsci.plugins.gitclient.GitClient |
getGitClient(Run<?,?> run,
BuildPipelineNode pipelineNode,
org.jenkinsci.plugins.workflow.graph.FlowNode node,
String gitUrl,
String gitCommit)
Creates a new Git client only if there is a Git information pending to calculate.
|
protected Long |
getNanosInQueue(BuildPipelineNode current) |
protected String |
getNodeHostname(Run<?,?> run,
BuildPipelineNode current) |
protected Set<String> |
getNodeLabels(Run run,
BuildPipelineNode current,
String nodeName) |
protected String |
getNodeName(Run<?,?> run,
BuildPipelineNode current,
BuildData buildData) |
protected String |
getResult(BuildPipelineNode current) |
protected boolean |
isLastNode(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
Check if flowNode is the last node of the pipeline.
|
protected boolean |
isTraceable(BuildPipelineNode node) |
protected void |
updateBuildData(BuildData buildData,
Run<?,?> run,
BuildPipelineNode pipelineNode,
org.jenkinsci.plugins.workflow.graph.FlowNode node) |
protected void |
updateCIGlobalTags(Run run) |
protected void |
updateStageBreakdown(Run<?,?> run,
BuildPipelineNode pipelineNode) |
protected static final String CI_PROVIDER
protected static final String HOSTNAME_NONE
public abstract void execute(Run run, org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
protected BuildPipelineNode buildPipelineTree(org.jenkinsci.plugins.workflow.graph.FlowEndNode flowEndNode)
protected void updateBuildData(BuildData buildData, Run<?,?> run, BuildPipelineNode pipelineNode, org.jenkinsci.plugins.workflow.graph.FlowNode node)
protected Long getNanosInQueue(BuildPipelineNode current)
protected Set<String> getNodeLabels(Run run, BuildPipelineNode current, String nodeName)
protected String getResult(BuildPipelineNode current)
protected String getNodeName(Run<?,?> run, BuildPipelineNode current, BuildData buildData)
protected String getNodeHostname(Run<?,?> run, BuildPipelineNode current)
protected boolean isTraceable(BuildPipelineNode node)
protected boolean isLastNode(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
flowNode
- protected GitCommitAction buildGitCommitAction(Run<?,?> run, org.jenkinsci.plugins.gitclient.GitClient gitClient, BuildPipelineNode pipelineNode)
protected GitRepositoryAction buildGitRepositoryAction(Run<?,?> run, org.jenkinsci.plugins.gitclient.GitClient gitClient, BuildPipelineNode pipelineNode)
protected BuildPipelineNode buildPipelineNode(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
protected void updateCIGlobalTags(Run run)
protected String buildOperationName(BuildPipelineNode current)
protected org.jenkinsci.plugins.gitclient.GitClient getGitClient(Run<?,?> run, BuildPipelineNode pipelineNode, org.jenkinsci.plugins.workflow.graph.FlowNode node, String gitUrl, String gitCommit)
run
- pipelineNode
- node
- gitUrl
- gitCommit
- protected void updateStageBreakdown(Run<?,?> run, BuildPipelineNode pipelineNode)
Copyright © 2016–2023. All rights reserved.