fix: pipeline

This commit is contained in:
cclecle
2023-03-19 19:50:23 +00:00
parent 65927077aa
commit 5eb2f1c5cf

3
Jenkinsfile vendored
View File

@@ -175,11 +175,10 @@ pipeline {
}
else
{
$_GITEA_BASE_URL
echo "new-tag requested in commit message: $BUMPED_VERSION"
withCredentials([usernamePassword(credentialsId: _SCMCredentials, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
sh("git remote set-url origin https://${GIT_USERNAME}:${GIT_PASSWORD}@chacha.ddns.net/gitea/${GIT_USERNAME}/${_GITEA_PROJECT_NAME}.git")
}
echo "new-tag requested in commit message: $BUMPED_VERSION"
sh("git tag $BUMPED_VERSION")
sh("git push origin --tags")
}