Create git tags
This commit is contained in:
parent
7da1c3c5c9
commit
69713cf80c
1 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,9 @@ node() {
|
|||
git "https://github.com/omallo/ruby-ex.git"
|
||||
}
|
||||
|
||||
def semver = sh(script: "mono /usr/local/GitVersion_3.6.5/GitVersion.exe /showvariable FullSemVer", returnStdout: true).trim()
|
||||
echo "semver: ${semver}"
|
||||
|
||||
def config = ocutil.parseConfig(readFile("deployment/config.yaml"))
|
||||
|
||||
stage("Build") {
|
||||
|
@ -23,7 +26,9 @@ node() {
|
|||
|
||||
if (isPromoteToTest) {
|
||||
stage("Deploy to TEST") {
|
||||
def semver = sh(script: "mono /usr/local/GitVersion_3.6.5/GitVersion.exe /showvariable FullSemVer", returnStdout: true).trim()
|
||||
sh "git tag ${semver}"
|
||||
sh "git push --tags"
|
||||
|
||||
ocutil.ocTag("rubex-dev", "frontend", "dev", semver)
|
||||
ocutil.ocTag("rubex-dev", "frontend", semver, "test")
|
||||
ocutil.ocDeploy("rubex-test", "frontend", config.test.deployment.frontend)
|
||||
|
|
Loading…
Reference in a new issue