Skip to content

Commit 21be5cf

Browse files
marko-bekhtabeikov
authored andcommitted
Do not use docker registry creds
as the proxy defined in the docker daemon should apply here anyway
1 parent 348dbee commit 21be5cf

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

Jenkinsfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,12 @@ stage('Build') {
142142
state[buildEnv.tag]['containerName'] = "edb"
143143
break;
144144
case "sybase_jconn":
145-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
146-
docker.image('nguoianphu/docker-sybase').pull()
147-
}
145+
docker.image('nguoianphu/docker-sybase').pull()
148146
sh "./docker_db.sh sybase"
149147
state[buildEnv.tag]['containerName'] = "sybase"
150148
break;
151149
case "cockroachdb":
152-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
153-
docker.image('cockroachdb/cockroach:v23.1.12').pull()
154-
}
150+
docker.image('cockroachdb/cockroach:v23.1.12').pull()
155151
sh "./docker_db.sh cockroachdb"
156152
state[buildEnv.tag]['containerName'] = "cockroach"
157153
break;

ci/jpa-3.2-tck.Jenkinsfile

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ pipeline {
5050
stage('Build') {
5151
steps {
5252
script {
53-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
54-
docker.image('openjdk:17-jdk').pull()
55-
}
53+
docker.image('openjdk:17-jdk').pull()
5654
}
5755
dir('hibernate') {
5856
checkout scm
@@ -72,35 +70,27 @@ pipeline {
7270
).trim()
7371
switch (params.RDBMS) {
7472
case "mysql":
75-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
76-
docker.image('mysql:8.2.0').pull()
77-
}
73+
docker.image('mysql:8.2.0').pull()
7874
sh "./docker_db.sh mysql"
7975
break;
8076
case "mssql":
8177
docker.image('mcr.microsoft.com/mssql/server@sha256:5439be9edc3b514cf647bcd3651779fa13f487735a985f40cbdcfecc60fea273').pull()
8278
sh "./docker_db.sh mssql"
8379
break;
8480
case "oracle":
85-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
86-
docker.image('gvenzl/oracle-free:23').pull()
87-
}
81+
docker.image('gvenzl/oracle-free:23').pull()
8882
sh "./docker_db.sh oracle"
8983
break;
9084
case "postgresql":
91-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
92-
docker.image('postgis/postgis:16-3.4').pull()
93-
}
85+
docker.image('postgis/postgis:16-3.4').pull()
9486
sh "./docker_db.sh postgresql"
9587
break;
9688
case "db2":
9789
docker.image('icr.io/db2_community/db2:11.5.9.0').pull()
9890
sh "./docker_db.sh db2"
9991
break;
10092
case "sybase":
101-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
102-
docker.image('nguoianphu/docker-sybase').pull()
103-
}
93+
docker.image('nguoianphu/docker-sybase').pull()
10494
sh "./docker_db.sh sybase"
10595
break;
10696
}
@@ -197,4 +187,4 @@ pipeline {
197187
198188
}
199189
}
200-
}
190+
}

0 commit comments

Comments
 (0)