Compare commits

..

No commits in common. "5e8ed330f89b9c3c876f8cd9faf09564b4e2fc39" and "c0650bb74eae3bdcade563d682a7945f55b189a9" have entirely different histories.

1 changed files with 2 additions and 5 deletions

5
Jenkinsfile vendored
View File

@ -98,13 +98,10 @@ pipeline {
"""
echo "PR ${prId} merged successfully into main!"
def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim()
def newCommitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim()
echo "COMMIT_HASH ${commitHash}"
ecoh "NEW_COMMIT_HASH ${newCommitHash}"
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": "${newCommitHash}"}' \
-d '{"tag_name": "${env.NEW_VERSION}", "name": "Release ${env.NEW_VERSION}", "target_commitish": "${commitHash}"}' \
"${env.GITEA_REPOSITORY_URL}deployer3000/${env.IMAGE_NAME}/releases"
"""
echo "New release succeeded!"