Update Jenkinsfile

This commit is contained in:
andrew clark
2025-09-30 13:39:09 -06:00
parent 94717fcecd
commit 4bb11a71d6

34
Jenkinsfile vendored
View File

@@ -78,7 +78,7 @@ def shouldRunCICheck() {
// Define patterns for files that should NOT trigger CI
def skipFilePatterns = [
/^Jenkinsfile$/, // This Jenkinsfile TODO: MOVE BACK TO RELEVANT. THIS IS HERE FOR TESTING.
/^Jenkinsfile$/, // This Jenkinsfile
/^\.github\/.*/, // GitHub workflow files (includes CODEOWNERS)
/^docs\/.*/, // Documentation files
/^LICENSE$/, // License file
@@ -144,18 +144,6 @@ def shouldRunCICheck() {
}
}
def shouldSkipStage(stageName) {
if (env.SHOULD_RUN_CI == 'false') {
echo "Skipping ${stageName} - only non-relevant files changed"
echo "Stage will be marked as successful for GitHub status checks"
// Ensure this stage is marked as successful for GitHub
// The gitStatusWrapper will see this stage as having run successfully
return true
}
return false
}
def getBaseDockerImageName(){
def img
if (params.USE_CUSTOM_DOCKER != ""){
@@ -1221,6 +1209,10 @@ pipeline {
SHOULD_RUN_CI = expression { params.FORCE_CI.toBoolean() || shouldRunCICheck()}
}
stages{
stage("Check for changes") {
agent{ label rocmnode("nogpu") }
echo "SHOULD_RUN_CI: ${SHOULD_RUN_CI}"
}
stage("Build Docker"){
when {
beforeAgent true
@@ -1880,14 +1872,14 @@ pipeline {
}
}
}
post {
always {
if (!env.SHOULD_RUN_CI.toBoolean()) {
// If CI was skipped, notify each of the branch protected checks that they are successful.
def requiredChecks = getRequiredBranchChecks()
requiredChecks.each { checkName ->
echo "pass skipped check: ${checkName}"
}
}
post {
always {
if (!env.SHOULD_RUN_CI.toBoolean()) {
// If CI was skipped, notify each of the branch protected checks that they are successful.
def requiredChecks = getRequiredBranchChecks()
requiredChecks.each { checkName ->
echo "pass skipped check: ${checkName}"
}
}
}