modified jenkins files
Esse commit está contido em:
externo
+9
-3
@@ -91,10 +91,16 @@ def commitChanges() {
|
|||||||
|
|
||||||
// Check for changes
|
// Check for changes
|
||||||
sh """
|
sh """
|
||||||
|
git status
|
||||||
git pull origin ${env.BRANCH_NAME}
|
git pull origin ${env.BRANCH_NAME}
|
||||||
git add .
|
# Only proceed if there are changes
|
||||||
git commit -m "Moved processed XML files to backup"
|
if [[ $(git status -s) ]]; then
|
||||||
git push --force https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
git add .
|
||||||
|
git commit -m "Moved processed XML files to backup"
|
||||||
|
git push https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
||||||
|
else
|
||||||
|
echo "No changes to commit."
|
||||||
|
fi
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário