jobs/updateSrcRev: just make git reset HEAD after updating src rev

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmüller 2023-09-04 13:20:51 +02:00
parent 86f82a6411
commit 93eb7c12fa
1 changed files with 1 additions and 4 deletions

View File

@ -102,10 +102,7 @@ def commitAndPushTheChanges(commonHelpers, repoDir) {
if(params.DRY_RUN) {
println "DRY RUN: commit message = '${commitMsg}'\n changes = ${changedItems}"
sh(script: """
git reset HEAD * > /dev/null
git checkout * > /dev/null
""")
sh(script: "git reset HEAD > /dev/null")
}
else {
println "ToDo: commit and push the changes"