Skip to content

Commit

Permalink
jenkinsfile: revert git changes check
Browse files Browse the repository at this point in the history
Signed-off-by: markoburcul <marko@status.im>
  • Loading branch information
markoburcul committed Oct 17, 2024
1 parent 1b05730 commit e64e38d
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 e64e38d

Please sign in to comment.