Skip to content

Commit

Permalink
runfix: Wait until smoke tests are done
Browse files Browse the repository at this point in the history
  • Loading branch information
corodiak committed Jan 7, 2025
1 parent 05b0126 commit 634a48f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ pipeline {
final List workflowRuns = jsonData['workflow_runs']
echo("Looking for hash ${commit_hash}")

return workflowRuns.any { run ->
return workflowRuns.any { run ->
def result = checkWorkflowRun(run, commit_hash)
if (run['conclusion'] == 'cancelled') {
echo("GitHub Action was cancelled. Ending Jenkins pipeline.")
return true
}

return result
}
}
Expand Down Expand Up @@ -155,7 +155,7 @@ pipeline {

stage('Trigger smoke test') {
steps {
build job: 'Webapp_Smoke_Chrome', parameters: [string(name: 'TAGS', value: '@smoke'), string(name: 'GIT_BRANCH', value: 'web-dev'), string(name: 'webappApplicationPath', value: "$webappApplicationPath")], wait: false
build job: 'Webapp_Smoke_Chrome', parameters: [string(name: 'TAGS', value: '@smoke'), string(name: 'GIT_BRANCH', value: 'web-dev'), string(name: 'webappApplicationPath', value: "$webappApplicationPath")]
}
}
}
Expand All @@ -170,4 +170,4 @@ pipeline {
}
}
}
}
}

0 comments on commit 634a48f

Please sign in to comment.