update Jenkinsfile for Gitops Workflow
This commit is contained in:
parent
d2b6391742
commit
642ab59f5e
|
|
@ -60,7 +60,7 @@ pipeline {
|
||||||
def branches = [
|
def branches = [
|
||||||
[name: "dev", overlay: "overlays/dev"],
|
[name: "dev", overlay: "overlays/dev"],
|
||||||
[name: "staging", overlay: "overlays/staging"],
|
[name: "staging", overlay: "overlays/staging"],
|
||||||
[name: "production", overlay: "overlays/production"]
|
[name: "prod", overlay: "overlays/production"]
|
||||||
]
|
]
|
||||||
|
|
||||||
withCredentials([usernamePassword(credentialsId: 'gitea-token-gitops', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
withCredentials([usernamePassword(credentialsId: 'gitea-token-gitops', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
||||||
|
|
@ -106,7 +106,7 @@ pipeline {
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
echo "✅ GitOps update successful — all branches (dev, staging, production) updated!"
|
echo "✅ GitOps update successful — all branches (dev, staging, prod) updated!"
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo "❌ Pipeline failed, check Jenkins logs for details."
|
echo "❌ Pipeline failed, check Jenkins logs for details."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue