Browse Source

Изменить 'Jenkinsfile'

tags/0.0.3
Vladimir Smagin 3 months ago
parent
commit
0b54501895
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Jenkinsfile

+ 2
- 1
Jenkinsfile View File

@@ -7,6 +7,7 @@ node {
def repository = "iam21h/redis-operator"
def image_name = "${repository}"
def commit_hash = checkout(scm).GIT_COMMIT
def git_tag = env.TAG_NAME
def version

stage("Read version from file") {
@@ -28,7 +29,7 @@ node {
}
}

if (branch == 'master') {
if ( git_tag != null ) {
stage("Push Image") {
try {



Loading…
Cancel
Save