This commit is contained in:
박서은
2025-06-19 09:39:33 +09:00
4 changed files with 43 additions and 41 deletions
+18 -18
View File
@@ -35,24 +35,24 @@ podTemplate(
echo "Team ID: ${props.teamid}"
}
// stage("Check Changes") {
// script {
// def changes = sh(
// script: "git diff --name-only HEAD~1 HEAD",
// returnStdout: true
// ).trim()
//
// echo "Changed files: ${changes}"
//
// if (!changes.contains("smarketing-ai/")) {
// echo "No changes in smarketing-ai, skipping build"
// currentBuild.result = 'SUCCESS'
// error("Stopping pipeline - no changes detected")
// }
//
// echo "Changes detected in smarketing-ai, proceeding with build"
// }
// }
stage("Check Changes") {
script {
def changes = sh(
script: "git diff --name-only HEAD~1 HEAD",
returnStdout: true
).trim()
echo "Changed files: ${changes}"
if (!changes.contains("smarketing-ai/")) {
echo "No changes in smarketing-ai, skipping build"
currentBuild.result = 'SUCCESS'
error("Stopping pipeline - no changes detected")
}
echo "Changes detected in smarketing-ai, proceeding with build"
}
}
stage("Setup AKS") {
container('azure-cli') {