Skip to content

Commit

Permalink
jenkinsfile: revert check for changed files (#622)
Browse files Browse the repository at this point in the history
Signed-off-by: markoburcul <marko@status.im>
  • Loading branch information
markoburcul authored Oct 17, 2024
1 parent 7f611bd commit 51d6189
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions apps/connector/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,14 @@ pipeline {

stages {
stage('Check Changed Files') {
steps {
script {
// Get the list of changed files
def changedFiles = sh(
script: "git diff --name-only origin/main...HEAD",
returnStdout: true
).trim()

// Check if the changes are relevant
def isRelevant = changedFiles.split('\n').any { file ->
file.startsWith('apps/connector/')
}

// If no relevant changes, skip the build
if (isRelevant) {
changesDetected = true
}
}
when {
changeset pattern: "apps/connector/**", comparator: "GLOB"
}
steps {
script {
changesDetected = true
}
}
}

stage('Install') {
Expand Down

0 comments on commit 51d6189

Please sign in to comment.