Class DeploymentPayloadBuilder
java.lang.Object
com.atlassian.jira.cloud.jenkins.deploymentinfo.client.DeploymentPayloadBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Deployments
getDeploymentInfo
(org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper runWrapper, Environment environment, Set<Association> associations, String state, List<Command> commands) Assembles a JiraDeploymentInfo with necessary parameters from the Jenkins context
-
Constructor Details
-
DeploymentPayloadBuilder
public DeploymentPayloadBuilder()
-
-
Method Details
-
getDeploymentInfo
public static Deployments getDeploymentInfo(org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper runWrapper, Environment environment, Set<Association> associations, String state, List<Command> commands) Assembles a JiraDeploymentInfo with necessary parameters from the Jenkins context- Parameters:
runWrapper
- Jenkins context that provides project and build detailsenvironment
- Deployment environmentassociations
- Jira issue keys or Service Ids to associate the build info withstate
- deployment state- Returns:
- an assembled Deployments payload
-