Skip to content

Commit

Permalink
Fix issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarjao authored Apr 23, 2021
1 parent b5bfd9c commit e59c4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bcgov/GitHubHelper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class GitHubHelper {
def ghRepo=getGitHubRepository(url)
def ghDeploymentState=GHDeploymentState.valueOf(statusName)

def ghDeploymentStatus=ghRepo.root.retrieve().to(ghRepo.getApiTailUrl("deployments/") + deploymentId, GHDeployment.class).wrap(ghRepo).createStatus(ghDeploymentState)
def ghDeploymentStatus=ghRepo.getDeployment(deploymentId).createStatus(ghDeploymentState)

if (deploymentStatusConfig.description){
ghDeploymentStatus.description(deploymentStatusConfig.description)
Expand All @@ -209,4 +209,4 @@ class GitHubHelper {
static void createCommitStatus(CpsScript script, String ref, String statusName, String targetUrl, String description, String context) {
createCommitStatus(script.scm.getUserRemoteConfigs()[0].getUrl() as String, ref, statusName, targetUrl, description, context)
}
}
}

0 comments on commit e59c4a7

Please sign in to comment.