refs #4685 Jenkinsfile kubernetes ns fix
gitea/mycdc/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2025-02-26 17:56:00 +01:00
parent 25aec35f0c
commit 9c3cdd8ccc
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -69,10 +69,10 @@ pipeline {
withKubeConfig([
serverUrl: "$KUBERNETES_API",
credentialsId: 'kubernetes',
namespace: 'mycdc'
namespace: "mycdc-${env.BRANCH_NAME}"
]) {
sh 'kubectl set image deployment/producer-$BRANCH_NAME main=$REGISTRY/mycdc-producer:$VERSION'
sh 'kubectl set image deployment/consumer-$BRANCH_NAME main=$REGISTRY/mycdc-consumer:$VERSION'
sh 'kubectl set image deployment/producer main=$REGISTRY/mycdc-producer:$VERSION'
sh 'kubectl set image deployment/consumer main=$REGISTRY/mycdc-consumer:$VERSION'
}
}
}