jenkins: use git switch

This commit is contained in:
2025-10-09 09:23:39 +02:00
parent 0db44fcee8
commit 37eb086aa1

2
Jenkinsfile vendored
View File

@@ -60,7 +60,7 @@ pipeline {
withCredentials([gitUsernamePassword(credentialsId: '3563e7c8-6a79-407c-9681-5d6e6291ba34')]) { withCredentials([gitUsernamePassword(credentialsId: '3563e7c8-6a79-407c-9681-5d6e6291ba34')]) {
sh ''' sh '''
git fetch origin master git fetch origin master
git checkout master git switch master
git add . git add .
git commit -m "Update repo from CI" git commit -m "Update repo from CI"
git push origin master git push origin master