Skip to content

Commit c7c8e6b

Browse files
committed
Публикация номерной версии в докер
1 parent aef45ce commit c7c8e6b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Jenkinsfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,19 @@ pipeline {
308308
anyOf {
309309
branch 'develop'
310310
branch 'release/latest'
311-
expression {
312-
return env.TAG_NAME && env.TAG_NAME.startsWith('v2.')
313-
}
314311
}
315312
}
316313
steps {
317314
script {
318-
def codename = env.TAG_NAME ? env.TAG_NAME : 'dev'
315+
def codename = ''
316+
if (env.VersionSuffix != null && !env.VersionSuffix.isEmpty() {
317+
codename = 'dev'
318+
}
319+
else
320+
{
321+
codename = fullVersionNumber()
322+
}
323+
319324
publishDockerImage('v2', codename)
320325
}
321326
}

0 commit comments

Comments
 (0)