Update Jenkinsfile

Testing skip env var
This commit is contained in:
andrew clark
2025-09-30 13:55:23 -06:00
parent ca62573a75
commit 2c71c183e7

16
Jenkinsfile vendored
View File

@@ -1206,13 +1206,25 @@ pipeline {
ck_git_creds = "${ck_git_creds}"
gerrit_cred="${gerrit_cred}"
DOCKER_BUILDKIT = "1"
SHOULD_RUN_CI = expression { params.FORCE_CI.toBoolean() || shouldRunCICheck()}
}
stages{
stage("Check for changes") {
agent{ label rocmnode("nogpu") }
steps {
echo "SHOULD_RUN_CI: ${SHOULD_RUN_CI}"
env.SHOULD_RUN_CI = params.FORCE_CI.toBoolean() || shouldRunCICheck()
echo "SHOULD_RUN_CI: ${env.SHOULD_RUN_CI}"
}
}
stage("Test stage") {
agent{ label rocmnode("nogpu") }
steps {
echo "SHOULD_RUN_CI: ${env.SHOULD_RUN_CI}"
if (env.SHOULD_RUN_CI.toBoolean()) {
echo "confirmed"
} else {
echo "negative"
}
error "this should error"
}
}
stage("Build Docker"){