Skip to content

Commit

Permalink
Add BASE_DOCKER_REGISTRY_CREDENTIAL_ID for external-test
Browse files Browse the repository at this point in the history
- BASE_DOCKER_REGISTRY_CREDENTIAL_ID is needed to increase daily image pull limit when running container-based testing

Signed-off-by: LongyuZhang <[email protected]>
  • Loading branch information
LongyuZhang committed Oct 30, 2023
1 parent 1ee9b08 commit 5ccacfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,14 @@ class Build {

def DOCKER_REGISTRY_URL = ''
def DOCKER_REGISTRY_URL_CREDENTIAL_ID = ''
def BASE_DOCKER_REGISTRY_CREDENTIAL_ID = ''
if ("${testType}".contains('external')) {
DOCKER_REGISTRY_URL = 'docker-na.artifactory.swg-devops.com/sys-rt-docker-local'
DOCKER_REGISTRY_URL_CREDENTIAL_ID = artifactoryCredential
rerunIterations = '0'
if (buildConfig.DOCKER_CREDENTIAL) {
BASE_DOCKER_REGISTRY_CREDENTIAL_ID = buildConfig.DOCKER_CREDENTIAL
}
}

def additionalTestLabel = buildConfig.ADDITIONAL_TEST_LABEL
Expand Down Expand Up @@ -523,6 +527,7 @@ class Build {
context.booleanParam(name: 'DYNAMIC_COMPILE', value: DYNAMIC_COMPILE),
context.string(name: 'DOCKER_REGISTRY_URL', value: DOCKER_REGISTRY_URL),
context.string(name: 'DOCKER_REGISTRY_URL_CREDENTIAL_ID', value: DOCKER_REGISTRY_URL_CREDENTIAL_ID),
context.string(name: 'BASE_DOCKER_REGISTRY_URL_CREDENTIAL_ID', value: BASE_DOCKER_REGISTRY_URL_CREDENTIAL_ID),
context.string(name: 'VENDOR_TEST_REPOS', value: VENDOR_TEST_REPOS),
context.string(name: 'VENDOR_TEST_BRANCHES', value: VENDOR_TEST_BRANCHES),
context.string(name: 'VENDOR_TEST_DIRS', value: VENDOR_TEST_DIRS),
Expand Down

0 comments on commit 5ccacfc

Please sign in to comment.