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:
parent
86f82a6411
commit
93eb7c12fa
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue