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")
|
||||
}
|
||||
else {
|
||||
println "ToDo: commit and push the changes"
|
||||
//NOTE: The following code snippet may help...
|
||||
//def theCredentials = getGitCredentialID()
|
||||
//sshagent (credentials: [theCredentials]) {
|
||||
// sh(label: "Commit and push changes", returnStdout: true, script: """
|
||||
// git commit -m "${commitMsg}"
|
||||
// git push
|
||||
// """)
|
||||
//}
|
||||
def theCredentials = commonHelpers.getGitCredentialID()
|
||||
sshagent (credentials: [theCredentials]) {
|
||||
println "Commit and Push changes; message = '${commitMsg}'\nchanges = ${changedItems}"
|
||||
sh(label: "Commit and push changes", returnStdout: true, script: """
|
||||
git commit -m "${commitMsg}"
|
||||
git push
|
||||
""")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue