Проверка7
test-org/test-ci-cd/pipeline/pr-main This commit looks good
Details
test-org/test-ci-cd/pipeline/pr-main This commit looks good
Details
parent
efa7794e38
commit
5ee56f8e1f
|
|
@ -44,6 +44,7 @@ pipeline {
|
||||||
def (major, minor, patch) = lastVersion.tokenize('.')
|
def (major, minor, patch) = lastVersion.tokenize('.')
|
||||||
def newVersion = "${major}.${minor}.${patch.toInteger() + 1}"
|
def newVersion = "${major}.${minor}.${patch.toInteger() + 1}"
|
||||||
env.IMAGE_TAG = newVersion
|
env.IMAGE_TAG = newVersion
|
||||||
|
env.NEW_VERSION = newVersion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -96,7 +97,7 @@ pipeline {
|
||||||
sh """
|
sh """
|
||||||
curl -X POST -u "${GITEA_USER}:${GITEA_PASS}" \
|
curl -X POST -u "${GITEA_USER}:${GITEA_PASS}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"tag_name": "${newVersion}", "name": "Release ${newVersion}", "target_commitish": "${env.GIT_COMMIT}"}' \
|
-d '{"tag_name": "${env.NEW_VERSION}", "name": "Release ${env.NEW_VERSION}", "target_commitish": "${env.GIT_COMMIT}"}' \
|
||||||
"${env.GITEA_REPOSITORY_URL}deployer3000/${env.IMAGE_NAME}/releases"
|
"${env.GITEA_REPOSITORY_URL}deployer3000/${env.IMAGE_NAME}/releases"
|
||||||
"""
|
"""
|
||||||
echo "New release succeeded!"
|
echo "New release succeeded!"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue