mirror of
https://github.com/corda/corda.git
synced 2025-04-13 22:23:31 +00:00
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:
parent
dce0e581e7
commit
534bccc88d
24
.ci/dev/regression/Jenkinsfile
vendored
24
.ci/dev/regression/Jenkinsfile
vendored
@ -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([
|
||||
|
Loading…
x
Reference in New Issue
Block a user