INFRA-435 Don't publish internal releases to Docker (#6475)

This commit is contained in:
Razvan Codreanu 2020-07-16 16:46:10 +01:00 committed by GitHub
parent fad8999ef4
commit 9b77f9a170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
* Sense environment
*/
boolean isReleaseTag = (env.TAG_NAME =~ /^release-.*(?<!_JDK11)$/)
boolean isInternalRelease = (env.TAG_NAME =~ /^internal-release-.*$/)
/*
** calculate the stage for NexusIQ evaluation
** * build for snapshots
@ -153,7 +154,7 @@ pipeline {
stage('Publish Release to Docker Hub') {
when {
expression { isReleaseTag }
expression { !isInternalRelease && isReleaseTag }
}
steps {
withCredentials([