|
@@ -93,11 +93,13 @@ def commitChanges() {
|
93
|
93
|
sh """
|
94
|
94
|
git checkout ${env.BRANCH_NAME}
|
95
|
95
|
git status
|
|
96
|
+ git pull origin ${env.BRANCH_NAME}
|
|
97
|
+
|
96
|
98
|
# Only proceed if there are changes
|
97
|
99
|
if [[ $(git status -s) ]]; then
|
98
|
100
|
git add .
|
99
|
101
|
git commit -m "Moved processed XML files to backup"
|
100
|
|
- git push https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
|
102
|
+ git push origin ${env.BRANCH_NAME}
|
101
|
103
|
else
|
102
|
104
|
echo "No changes to commit."
|
103
|
105
|
fi
|