Class DeploymentPayloadBuilder

java.lang.Object
com.atlassian.jira.cloud.jenkins.deploymentinfo.client.DeploymentPayloadBuilder

public final class DeploymentPayloadBuilder extends Object
  • 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 details
      environment - Deployment environment
      associations - Jira issue keys or Service Ids to associate the build info with
      state - deployment state
      Returns:
      an assembled Deployments payload