INFRA-1038 Publish RC/HC builds to internal repo (#6830)

Publish RC/HC builds to internal repo instead of DockerHub.
This commit is contained in:
Ross Nicoll 2020-12-02 16:26:15 +00:00 committed by GitHub
parent dce0e581e7
commit 534bccc88d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,10 +273,30 @@ pipeline {
}
}
stage('Publish Release Candidate to Internal Repository') {
when {
expression { isReleaseCandidate }
}
steps {
withCredentials([
usernamePassword(credentialsId: 'docker-image-pusher-os',
usernameVariable: 'DOCKER_USERNAME',
passwordVariable: 'DOCKER_PASSWORD')
]) {
sh script: [
'./gradlew',
COMMON_GRADLE_PARAMS,
'docker:pushDockerImage',
'--image OFFICIAL',
'--registry-url=entdocker.software.r3.com'
].join(' ')
}
}
}
stage('Publish Release to Docker Hub') {
when {
/* Note we do publish release tags, unlike Corda Enterprise */
expression { !isInternalRelease && isReleaseTag }
expression { isReleaseTag && !isInternalRelease && !isReleaseCandidate}
}
steps {
withCredentials([