@ -1,8 +1,6 @@
FROM maven:3.8.1-adoptopenjdk-11
MAINTAINER Goudham Suresh
CMD ["java", "-Djava.awt.headless=true", "-jar", "/var/lib/jenkins/workspace/app.jar"]
RUN apt-get update && apt-get install -y \
gpg \
xvfb
@ -32,7 +32,7 @@ pipeline {
stage("Test") {
steps {
wrap([$class: 'Xvfb']) {
sh "mvn test -Djava.awt.headless=true"
sh "mvn test"
}
post {