modified jenkins file
Šī revīzija ir iekļauta:
ārējs
+3
-1
@@ -93,11 +93,13 @@ def commitChanges() {
|
|||||||
sh """
|
sh """
|
||||||
git checkout ${env.BRANCH_NAME}
|
git checkout ${env.BRANCH_NAME}
|
||||||
git status
|
git status
|
||||||
|
git pull origin ${env.BRANCH_NAME}
|
||||||
|
|
||||||
# Only proceed if there are changes
|
# Only proceed if there are changes
|
||||||
if [[ $(git status -s) ]]; then
|
if [[ $(git status -s) ]]; then
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Moved processed XML files to backup"
|
git commit -m "Moved processed XML files to backup"
|
||||||
git push https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
git push origin ${env.BRANCH_NAME}
|
||||||
else
|
else
|
||||||
echo "No changes to commit."
|
echo "No changes to commit."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Atsaukties uz šo jaunā problēmā
Block a user