Class GHDeploymentStatusBuilder

java.lang.Object
org.kohsuke.github.GHDeploymentStatusBuilder

public class GHDeploymentStatusBuilder extends Object
Creates a new deployment status.
See Also:
  • Method Details

    • autoInactive

      public GHDeploymentStatusBuilder autoInactive(boolean autoInactive)
      Add an inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment.
      Parameters:
      autoInactive - Add inactive status flag
      Returns:
      the gh deployment status builder
    • description

      public GHDeploymentStatusBuilder description(String description)
      Description gh deployment status builder.
      Parameters:
      description - the description
      Returns:
      the gh deployment status builder
    • environment

      public GHDeploymentStatusBuilder environment(String environment)
      Name for the target deployment environment, which can be changed when setting a deploy status.
      Parameters:
      environment - the environment name
      Returns:
      the gh deployment status builder
    • environmentUrl

      public GHDeploymentStatusBuilder environmentUrl(String environmentUrl)
      The URL for accessing the environment.
      Parameters:
      environmentUrl - the environment url
      Returns:
      the gh deployment status builder
    • logUrl

      public GHDeploymentStatusBuilder logUrl(String logUrl)
      The full URL of the deployment's output.
      Parameters:
      logUrl - the deployment output url
      Returns:
      the gh deployment status builder
    • create

      public GHDeploymentStatus create() throws IOException
      Create gh deployment status.
      Returns:
      the gh deployment status
      Throws:
      IOException - the io exception