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:
Marc Mattmüller 2023-09-04 13:39:18 +02:00
parent 93eb7c12fa
commit 335bdead05
1 changed files with 8 additions and 9 deletions

View File

@ -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 """)
// """) }
//}
} }
} }
} }