Package org.kohsuke.github
Class GHDeploymentStatusBuilder
- java.lang.Object
-
- org.kohsuke.github.GHDeploymentStatusBuilder
-
public class GHDeploymentStatusBuilder extends Object
Creates a new deployment status.
-
-
Constructor Summary
Constructors Constructor Description GHDeploymentStatusBuilder(GHRepository repo, int deploymentId, GHDeploymentState state)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GHDeploymentStatusBuilder
autoInactive(boolean autoInactive)
Deprecated.until preview feature has graduated to stableGHDeploymentStatus
create()
Create gh deployment status.GHDeploymentStatusBuilder
description(String description)
Description gh deployment status builder.GHDeploymentStatusBuilder
environment(String environment)
Deprecated.until preview feature has graduated to stableGHDeploymentStatusBuilder
environmentUrl(String environmentUrl)
Deprecated.until preview feature has graduated to stableGHDeploymentStatusBuilder
logUrl(String logUrl)
Deprecated.until preview feature has graduated to stableGHDeploymentStatusBuilder
targetUrl(String targetUrl)
Deprecated.Target url is deprecated in favor oflogUrl
-
-
-
Constructor Detail
-
GHDeploymentStatusBuilder
@Deprecated public GHDeploymentStatusBuilder(GHRepository repo, int deploymentId, GHDeploymentState state)
Deprecated.Instantiates a new Gh deployment status builder.- Parameters:
repo
- the repodeploymentId
- the deployment idstate
- the state
-
-
Method Detail
-
autoInactive
@Preview({ANT_MAN,FLASH}) public GHDeploymentStatusBuilder autoInactive(boolean autoInactive)
Deprecated.until preview feature has graduated to stableAdd 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
@Preview(FLASH) public GHDeploymentStatusBuilder environment(String environment)
Deprecated.until preview feature has graduated to stableName 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
@Preview(ANT_MAN) public GHDeploymentStatusBuilder environmentUrl(String environmentUrl)
Deprecated.until preview feature has graduated to stableThe URL for accessing the environment.- Parameters:
environmentUrl
- the environment url- Returns:
- the gh deployment status builder
-
logUrl
@Preview(ANT_MAN) public GHDeploymentStatusBuilder logUrl(String logUrl)
Deprecated.until preview feature has graduated to stableThe full URL of the deployment's output.This method replaces
targetUrl
.- Parameters:
logUrl
- the deployment output url- Returns:
- the gh deployment status builder
-
targetUrl
@Deprecated public GHDeploymentStatusBuilder targetUrl(String targetUrl)
Deprecated.Target url is deprecated in favor oflogUrl
Target url gh deployment status builder.- Parameters:
targetUrl
- the target 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
-
-