diff --git a/Jenkinsfile b/Jenkinsfile index 5ad4c506..b989d9ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ import ai.h2o.ci.Utils -JAVA_IMAGE = 'openjdk:17-slim' +JAVA_IMAGE = 'harbor.h2o.ai/dockerhub-proxy/library/openjdk:17-jdk-slim' NODE_LABEL = 'docker' DOCKERHUB_CREDS = 'dockerhub' HARBOR_URL = "http://harbor.h2o.ai/" @@ -70,10 +70,10 @@ pipeline { // Run inside JAVA_IMAGE container on NODE_LABEL host. agent { docker { - //registryCredentialsId HARBOR_CREDS - //registryUrl HARBOR_URL + registryCredentialsId HARBOR_CREDS + registryUrl HARBOR_URL image JAVA_IMAGE - //label NODE_LABEL + label NODE_LABEL } } steps { @@ -96,10 +96,10 @@ pipeline { // Run inside JAVA_IMAGE container on NODE_LABEL host. agent { docker { - //registryCredentialsId HARBOR_CREDS - //registryUrl HARBOR_URL + registryCredentialsId HARBOR_CREDS + registryUrl HARBOR_URL image JAVA_IMAGE - //label NODE_LABEL + label NODE_LABEL } } steps { @@ -161,10 +161,10 @@ pipeline { } agent { docker { - //registryCredentialsId HARBOR_CREDS - //registryUrl HARBOR_URL + registryCredentialsId HARBOR_CREDS + registryUrl HARBOR_URL image JAVA_IMAGE - //label NODE_LABEL + label NODE_LABEL } } steps { @@ -203,10 +203,10 @@ pipeline { } agent { docker { - //registryCredentialsId HARBOR_CREDS - //registryUrl HARBOR_URL + registryCredentialsId HARBOR_CREDS + registryUrl HARBOR_URL image JAVA_IMAGE - //label NODE_LABEL + label NODE_LABEL } } steps { @@ -244,10 +244,10 @@ pipeline { } agent { docker { - //registryCredentialsId HARBOR_CREDS - //registryUrl HARBOR_URL + registryCredentialsId HARBOR_CREDS + registryUrl HARBOR_URL image JAVA_IMAGE - //label NODE_LABEL + label NODE_LABEL } } steps {