Skip to content

Commit 7f4cead

Browse files
authored
Merge pull request #146 from OpenLiberty/build-fix
Build failures fix
2 parents e5abd5c + a37a776 commit 7f4cead

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.one-pipeline.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ setup:
3232
3333
test:
3434
abort_on_failure: true
35-
image: icr.io/continuous-delivery/pipeline/pipeline-base-image:2.12@sha256:ff4053b0bca784d6d105fee1d008cfb20db206011453071e86b69ca3fde706a4
35+
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.12
3636
script: |
3737
#!/usr/bin/env bash
3838
SKIP_UNIT_TESTS=$(get_env SKIP_UNIT_TESTS)
@@ -72,7 +72,7 @@ static-scan:
7272
containerize:
7373
abort_on_failure: true
7474
dind: true
75-
image: icr.io/continuous-delivery/pipeline/pipeline-base-image:2.12@sha256:ff4053b0bca784d6d105fee1d008cfb20db206011453071e86b69ca3fde706a4
75+
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.12
7676
script: |
7777
#!/usr/bin/env bash
7878
@@ -82,20 +82,11 @@ containerize:
8282
set -x
8383
fi
8484
85-
apt-get update
86-
apt-get -qq -y install build-essential software-properties-common uidmap
85+
yum -y -q update
8786
88-
# Download and install skopeo
89-
if ! command -v skopeo &> /dev/null; then
90-
if [ ! -f "/apt/sources.list.d/devel:kubic:libcontainers:stable.list" ]; then
91-
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
92-
wget --no-check-certificate -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_18.04/Release.key -O- | sudo apt-key add -
93-
sudo apt-get update -qq
94-
fi
95-
sudo apt-get -y install skopeo
96-
else
97-
skopeo --version
98-
fi
87+
# Check skopeo version
88+
echo "skopeo version"
89+
skopeo --version || exit 1
9990
10091
# Build images
10192
export PIPELINE_USERNAME=$(get_env ibmcloud-api-user)

pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
<dependency>
4545
<groupId>org.jboss.resteasy</groupId>
4646
<artifactId>resteasy-client</artifactId>
47-
<version>6.2.3.Final</version>
47+
<version>6.2.12.Final</version>
4848
<scope>test</scope>
4949
</dependency>
5050
<dependency>
5151
<groupId>org.jboss.resteasy</groupId>
5252
<artifactId>resteasy-json-binding-provider</artifactId>
53-
<version>6.2.3.Final</version>
53+
<version>6.2.12.Final</version>
5454
<scope>test</scope>
5555
</dependency>
5656
<dependency>
@@ -97,6 +97,11 @@
9797
</includes>
9898
</configuration>
9999
</plugin>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-war-plugin</artifactId>
103+
<version>3.4.0</version>
104+
</plugin>
100105
</plugins>
101106
</build>
102107
</project>

0 commit comments

Comments
 (0)