jenkinsfile: revert check for changed files
Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
parent
1b05730c3d
commit
6404ea799f
|
@ -30,25 +30,14 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Check Changed Files') {
|
stage('Check Changed Files') {
|
||||||
steps {
|
when {
|
||||||
script {
|
changeset pattern: "apps/connector/**", comparator: "GLOB"
|
||||||
// Get the list of changed files
|
}
|
||||||
def changedFiles = sh(
|
steps {
|
||||||
script: "git diff --name-only origin/main...HEAD",
|
script {
|
||||||
returnStdout: true
|
changesDetected = 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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Install') {
|
stage('Install') {
|
||||||
|
|
Loading…
Reference in New Issue