Skip to content

Commit ce25d71

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 a2fc693 commit ce25d71

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

Jenkinsfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,12 @@ stage('Build') {
158158
state[buildEnv.tag]['containerName'] = "edb"
159159
break;
160160
case "sybase_jconn":
161-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
162-
docker.image('nguoianphu/docker-sybase').pull()
163-
}
161+
docker.image('nguoianphu/docker-sybase').pull()
164162
sh "./docker_db.sh sybase"
165163
state[buildEnv.tag]['containerName'] = "sybase"
166164
break;
167165
case "cockroachdb":
168-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
169-
docker.image('cockroachdb/cockroach:v23.1.12').pull()
170-
}
166+
docker.image('cockroachdb/cockroach:v23.1.12').pull()
171167
sh "./docker_db.sh cockroachdb"
172168
state[buildEnv.tag]['containerName'] = "cockroach"
173169
break;

ci/jpa-3.2-tck.Jenkinsfile

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ pipeline {
4949
stages {
5050
stage('Build') {
5151
steps {
52-
script {
53-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
54-
docker.image('openjdk:17-jdk').pull()
55-
}
56-
}
5752
dir('hibernate') {
5853
checkout scm
5954
withEnv([
@@ -72,35 +67,27 @@ pipeline {
7267
).trim()
7368
switch (params.RDBMS) {
7469
case "mysql":
75-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
76-
docker.image('mysql:8.2.0').pull()
77-
}
70+
docker.image('mysql:8.2.0').pull()
7871
sh "./docker_db.sh mysql"
7972
break;
8073
case "mssql":
8174
docker.image('mcr.microsoft.com/mssql/server@sha256:5439be9edc3b514cf647bcd3651779fa13f487735a985f40cbdcfecc60fea273').pull()
8275
sh "./docker_db.sh mssql"
8376
break;
8477
case "oracle":
85-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
86-
docker.image('gvenzl/oracle-free:23').pull()
87-
}
78+
docker.image('gvenzl/oracle-free:23').pull()
8879
sh "./docker_db.sh oracle"
8980
break;
9081
case "postgresql":
91-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
92-
docker.image('postgis/postgis:16-3.4').pull()
93-
}
82+
docker.image('postgis/postgis:16-3.4').pull()
9483
sh "./docker_db.sh postgresql"
9584
break;
9685
case "db2":
9786
docker.image('icr.io/db2_community/db2:11.5.9.0').pull()
9887
sh "./docker_db.sh db2"
9988
break;
10089
case "sybase":
101-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
102-
docker.image('nguoianphu/docker-sybase').pull()
103-
}
90+
docker.image('nguoianphu/docker-sybase').pull()
10491
sh "./docker_db.sh sybase"
10592
break;
10693
}
@@ -197,4 +184,4 @@ pipeline {
197184
198185
}
199186
}
200-
}
187+
}

0 commit comments

Comments
 (0)