mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
Merge branch 'main' of https://github.com/won-ktds/smarketing-backend
This commit is contained in:
commit
4eb060df23
19
smarketing-java/deployment/Jenkinsfile
vendored
19
smarketing-java/deployment/Jenkinsfile
vendored
@ -41,6 +41,25 @@ podTemplate(
|
|||||||
echo "Image Tag: ${imageTag}"
|
echo "Image Tag: ${imageTag}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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'
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Changes detected in smarketing-ai, proceeding with build"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage("Setup AKS") {
|
stage("Setup AKS") {
|
||||||
container('azure-cli') {
|
container('azure-cli') {
|
||||||
withCredentials([azureServicePrincipal('azure-credentials')]) {
|
withCredentials([azureServicePrincipal('azure-credentials')]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user