Create git tags

This commit is contained in:
Ovidio Mallo 2017-01-02 03:45:03 +01:00
parent 7da1c3c5c9
commit 69713cf80c

View file

@ -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)