jobs/updateSrcRev: released commit and push part after the src rev update
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
93eb7c12fa
commit
335bdead05
|
|
@ -105,15 +105,14 @@ def commitAndPushTheChanges(commonHelpers, repoDir) {
|
||||||
sh(script: "git reset HEAD > /dev/null")
|
sh(script: "git reset HEAD > /dev/null")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
println "ToDo: commit and push the changes"
|
def theCredentials = commonHelpers.getGitCredentialID()
|
||||||
//NOTE: The following code snippet may help...
|
sshagent (credentials: [theCredentials]) {
|
||||||
//def theCredentials = getGitCredentialID()
|
println "Commit and Push changes; message = '${commitMsg}'\nchanges = ${changedItems}"
|
||||||
//sshagent (credentials: [theCredentials]) {
|
sh(label: "Commit and push changes", returnStdout: true, script: """
|
||||||
// sh(label: "Commit and push changes", returnStdout: true, script: """
|
git commit -m "${commitMsg}"
|
||||||
// git commit -m "${commitMsg}"
|
git push
|
||||||
// git push
|
""")
|
||||||
// """)
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue