Compare commits
No commits in common. "8f80603f78c108ebc7df5b9e8f1950a28e4e939b" and "e10bb09d7b2fd14a313c66a3fcb764ce24ac9c66" have entirely different histories.
8f80603f78
...
e10bb09d7b
|
|
@ -86,7 +86,6 @@ pipeline {
|
|||
if (env.CHANGE_BRANCH?.startsWith('rc')) {
|
||||
echo "Attempting to merge PR ${env.CHANGE_ID} into master..."
|
||||
def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim()
|
||||
def mergeCommitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim()
|
||||
withCredentials([usernamePassword(credentialsId: 'gitea_creds', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
||||
def prId = env.CHANGE_ID
|
||||
|
||||
|
|
@ -99,6 +98,7 @@ pipeline {
|
|||
"""
|
||||
echo "PR ${prId} merged successfully into main!"
|
||||
|
||||
def mergeCommitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim()
|
||||
echo "Merge commit hash: ${mergeCommitHash}"
|
||||
sh """
|
||||
curl -v -X POST -u "${GITEA_USER}:${GITEA_PASS}" \
|
||||
|
|
|
|||
Loading…
Reference in New Issue