From 51d61895a495c8a4e42d68367c26cd165d1bfca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Bur=C4=8Dul?= <39484255+markoburcul@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:07:19 +0200 Subject: [PATCH] jenkinsfile: revert check for changed files (#622) Signed-off-by: markoburcul --- apps/connector/Jenkinsfile | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/apps/connector/Jenkinsfile b/apps/connector/Jenkinsfile index 31e1af93..782365e7 100644 --- a/apps/connector/Jenkinsfile +++ b/apps/connector/Jenkinsfile @@ -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') {