mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
refactor: Jenkinsfile 변경 - Check Change 추가
This commit is contained in:
parent
4b0f6e25c6
commit
9d30b7491c
19
smarketing-ai/deployment/Jenkinsfile
vendored
19
smarketing-ai/deployment/Jenkinsfile
vendored
@ -35,6 +35,25 @@ podTemplate(
|
|||||||
echo "Team ID: ${props.teamid}"
|
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'
|
||||||
|
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