Update 'jenkins/Jenkinsfile'
This commit is contained in:
Vendored
+3
-10
@@ -92,17 +92,10 @@ def commitChanges() {
|
||||
// Check for changes
|
||||
sh """
|
||||
git checkout ${env.BRANCH_NAME}
|
||||
git status
|
||||
git pull origin ${env.BRANCH_NAME}
|
||||
|
||||
# Only proceed if there are changes
|
||||
if [[ $(git status -s) ]]; then
|
||||
git add .
|
||||
git commit -m "Moved processed XML files to backup"
|
||||
git push origin ${env.BRANCH_NAME}
|
||||
else
|
||||
echo "No changes to commit."
|
||||
fi
|
||||
git add .
|
||||
git commit -m "Moved processed XML files to backup"
|
||||
git push --force https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
||||
"""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user