Skip to content

Commit

Permalink
fix status again
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Albertson <[email protected]>
  • Loading branch information
ramereth committed Oct 4, 2024
1 parent 7620038 commit cc7098a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
public/
pagefind
pagefind
.hugo_build.lock
5 changes: 1 addition & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ pipeline {
siteUrl = "https://osuosl-website-${env.CHANGE_ID}.staging.osuosl.org/"
}

// Adjust the status to use valid enum values
def githubStatus = (buildStatus == 'SUCCESS') ? 'success' : 'failure'

// Post build status with a link to the site
githubNotify context: 'Jenkins CI',
description: 'Build completed',
status: githubStatus,
status: buildStatus,
targetUrl: "${env.BUILD_URL}",
message: "Site available: ${siteUrl}"
}
Expand Down

0 comments on commit cc7098a

Please sign in to comment.