mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
refactor: Jenkinsfile
This commit is contained in:
parent
66a5b5096f
commit
534698ca93
32
smarketing-java/deployment/Jenkinsfile
vendored
32
smarketing-java/deployment/Jenkinsfile
vendored
@ -43,22 +43,22 @@ podTemplate(
|
|||||||
echo "Image Org: ${props.image_org}"
|
echo "Image Org: ${props.image_org}"
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Check Changes") {
|
// stage("Check Changes") {
|
||||||
script {
|
// script {
|
||||||
def changes = sh(
|
// def changes = sh(
|
||||||
script: "git diff --name-only HEAD~1 HEAD",
|
// script: "git diff --name-only HEAD~1 HEAD",
|
||||||
returnStdout: true
|
// returnStdout: true
|
||||||
).trim()
|
// ).trim()
|
||||||
|
//
|
||||||
if (!changes.contains("smarketing-java/")) {
|
// if (!changes.contains("smarketing-java/")) {
|
||||||
echo "No changes in smarketing-java, skipping build"
|
// echo "No changes in smarketing-java, skipping build"
|
||||||
currentBuild.result = 'SUCCESS'
|
// currentBuild.result = 'SUCCESS'
|
||||||
error("Stopping pipeline - no changes detected")
|
// error("Stopping pipeline - no changes detected")
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
echo "Changes detected in smarketing-java, proceeding with build"
|
// echo "Changes detected in smarketing-java, proceeding with build"
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
stage("Setup AKS") {
|
stage("Setup AKS") {
|
||||||
container('azure-cli') {
|
container('azure-cli') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user