Compare commits
No commits in common. "7b5b4437213b4f026fb4345637b7082d4efb40e2" and "f1a9f19962bbc8ce65b828a6ccd538d38c94abc2" have entirely different histories.
7b5b443721
...
f1a9f19962
|
|
@ -30,7 +30,7 @@ pipeline {
|
||||||
stage ('Initialize variables') {
|
stage ('Initialize variables') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim()
|
lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim()
|
||||||
|
|
||||||
if (!lastVersion) {
|
if (!lastVersion) {
|
||||||
lastVersion = "0.0.0"
|
lastVersion = "0.0.0"
|
||||||
|
|
@ -91,7 +91,7 @@ pipeline {
|
||||||
"${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!"
|
||||||
|
|
||||||
sh """
|
sh """
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-u "${GITEA_USER}:${GITEA_PASS}" \
|
-u "${GITEA_USER}:${GITEA_PASS}" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue