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) {
|
if(params.DRY_RUN) {
|
||||||
println "DRY RUN: commit message = '${commitMsg}'\n changes = ${changedItems}"
|
println "DRY RUN: commit message = '${commitMsg}'\n changes = ${changedItems}"
|
||||||
sh(script: """
|
sh(script: "git reset HEAD > /dev/null")
|
||||||
git reset HEAD * > /dev/null
|
|
||||||
git checkout * > /dev/null
|
|
||||||
""")
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
println "ToDo: commit and push the changes"
|
println "ToDo: commit and push the changes"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue