(Almost) Give up with headless=true

MYC-Refactor
Hammy 3 years ago
parent 6601734595
commit afe714d74c

@ -1,8 +1,6 @@
FROM maven:3.8.1-adoptopenjdk-11 FROM maven:3.8.1-adoptopenjdk-11
MAINTAINER Goudham Suresh MAINTAINER Goudham Suresh
CMD ["java", "-Djava.awt.headless=true", "-jar", "/var/lib/jenkins/workspace/app.jar"]
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
gpg \ gpg \
xvfb xvfb

2
Jenkinsfile vendored

@ -32,7 +32,7 @@ pipeline {
stage("Test") { stage("Test") {
steps { steps {
wrap([$class: 'Xvfb']) { wrap([$class: 'Xvfb']) {
sh "mvn test -Djava.awt.headless=true" sh "mvn test"
} }
} }
post { post {

Loading…
Cancel
Save