You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the 'Update Deployment File' stage, 'replaceImageTag' will be updated to 1 after the successful first execution of the pipeline. However, during the second execution, we cannot change it to 2 as 'replaceImageTag' will no longer exist. Therefore, the 'sed' command can alter the build number to 2 instead.
The text was updated successfully, but these errors were encountered:
Create a file in spring-boot-app-manifests Directory as build.sh .
Put this contain into build.sh file into -->
#!/bin/bash
BUILD_NUMBER=${BUILD_NUMBER}
let PRE_BUILD=$BUILD_NUMBER-1
sed -i "s/cicd:$PRE_BUILD/cicd:$BUILD_NUMBER/g" java-maven-sonar-argocd-helm-k8s/spring-boot-app-manifests/deployment.yml
During the 'Update Deployment File' stage, 'replaceImageTag' will be updated to 1 after the successful first execution of the pipeline. However, during the second execution, we cannot change it to 2 as 'replaceImageTag' will no longer exist. Therefore, the 'sed' command can alter the build number to 2 instead.
The text was updated successfully, but these errors were encountered: