Compare commits

..

No commits in common. "07a672ccd6d981c8c68d81c3d693742c7d1e9ff9" and "221bcb54e93f64bc6aa5cf4ee583ec46f089e96b" have entirely different histories.

1 changed files with 2 additions and 3 deletions

5
Jenkinsfile vendored
View File

@ -98,12 +98,11 @@ pipeline {
"""
echo "PR ${prId} merged successfully into main!"
def mergeCommitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim()
echo "Merge commit hash: ${mergeCommitHash}"
echo "GIT_COMMIT: ${env.GIT_COMMIT}"
sh """
curl -v -X POST -u "${GITEA_USER}:${GITEA_PASS}" \
-H "Content-Type: application/json" \
-d '{"tag_name": "${env.NEW_VERSION}", "name": "Release ${env.NEW_VERSION}", "target_commitish": "${mergeCommitHash}"}' \
-d '{"tag_name": "${env.NEW_VERSION}", "name": "Release ${env.NEW_VERSION}"}' \
"${env.GITEA_REPOSITORY_URL}deployer3000/${env.IMAGE_NAME}/releases"
"""
echo "New release succeeded!"