Skip to content

Commit

Permalink
apply gitlab status once CI is confirmed to be ran (#549)
Browse files Browse the repository at this point in the history
Signed-off-by: Clement Fuji Tsang <cfujitsang@nvidia.com>
  • Loading branch information
Caenorst committed Apr 11, 2022
1 parent 54d8fa4 commit 174db51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/gitlab_jenkins_templates/core_ci.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ branchRef = gitlabSourceBranch.replaceAll("[^a-zA-Z0-9]", "-")
node {
checkout scm
// Sanity check, in case this script fail to launch all builds and tests
gitlabCommitStatus("launch all builds") {
// Right now we only apply CI on MR and master branch.
// To enable master branch we have to accept all the push requests
// and prune them here.
sh "echo ${gitlabActionType}"
if (gitlabActionType == "MERGE" || gitlabSourceBranch == "master") {
// Right now we only apply CI on MR and master branch.
// To enable master branch we have to accept all the push requests
// and prune them here.
sh "echo ${gitlabActionType}"
if (gitlabActionType == "MERGE" || gitlabSourceBranch == "master") {
gitlabCommitStatus("launch all builds") {
jobMap = [:]
// Jenkins doesn't parse the commit hash from the webhook.
// So we need to get the commit hash from the last commit in the branch,
Expand Down

0 comments on commit 174db51

Please sign in to comment.