File tree Expand file tree Collapse file tree 2 files changed +25
-20
lines changed Expand file tree Collapse file tree 2 files changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,21 @@ pipeline {
1515 stage(" Docker images" ) {
1616 parallel {
1717 stage(' Publish JDK 8 + MongoDB 5.0' ) {
18- when {
19- changeset " ci/openjdk8-mongodb-5.0/**"
20- }
21- agent { label ' data' }
22- options { timeout(time : 30 , unit : ' MINUTES' ) }
18+ when {
19+ changeset " ci/openjdk8-mongodb-5.0/**"
20+ }
21+ agent { label ' data' }
22+ options { timeout(time : 30 , unit : ' MINUTES' ) }
2323
24- steps {
25- script {
26- def image = docker. build(" springci/spring-data-openjdk8-with-mongodb-5.0.0" , " ci/openjdk8-mongodb-5.0/" )
27- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
28- image. push()
29- }
30- }
31- }
32- }
24+ steps {
25+ script {
26+ def image = docker. build(" springci/spring-data-openjdk8-with-mongodb-5.0.0" , " ci/openjdk8-mongodb-5.0/" )
27+ docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
28+ image. push()
29+ }
30+ }
31+ }
32+ }
3333 stage(' Publish JDK 8 + MongoDB 4.0' ) {
3434 when {
3535 changeset " ci/openjdk8-mongodb-4.0/**"
Original file line number Diff line number Diff line change @@ -3,14 +3,19 @@ FROM adoptopenjdk/openjdk8:latest
33ENV TZ=Etc/UTC
44ENV DEBIAN_FRONTEND=noninteractive
55
6- RUN RUN set -eux; \
7- apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 ; \
8- apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 ; \
6+ RUN set -eux; \
7+ apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 wget ; \
8+ # MongoDB 4.0 release signing key, needed to validate development's Release bundle
9+ apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 68818C72E52529D4 ; \
10+ # MongoDB 5.0 release signing key
11+ apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv B00A0BD1E2C63C11 ; \
12+ # Needed when MongoDB creates a 5.0 folder.
913 echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list; \
14+ # Needed to get MongoDB's development releases.
15+ echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/development multiverse" | tee /etc/apt/sources.list.d/mongodb-org-development.list; \
1016 echo ${TZ} > /etc/timezone;
1117
12- RUN apt-get update ; \
13- apt-get install -y mongodb-org=5.0.0 mongodb-org-server=5.0.0 mongodb-org-shell=5.0.0 mongodb-org-mongos=5.0.0 mongodb-org-tools=5.0.0 ; \
18+ RUN apt-get update; \
19+ apt-get install -y mongodb-org=5.0.0~latest mongodb-org-server=5.0.0~latest mongodb-org-shell=5.0.0~latest mongodb-org-mongos=5.0.0~latest mongodb-org-tools=5.0.0~latest ; \
1420 apt-get clean; \
1521 rm -rf /var/lib/apt/lists/*;
16-
You can’t perform that action at this time.
0 commit comments