Update Jenkinsfile

This commit is contained in:
Andrea Cavalli 2020-10-07 12:09:53 +02:00
parent c9acac2a8b
commit 04166764a4

7
Jenkinsfile vendored
View File

@ -7,9 +7,6 @@ pipeline {
JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven' JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven'
} }
agent any agent any
triggers {
pollSCM "* * * * *"
}
options { options {
timestamps() timestamps()
ansiColor("xterm") ansiColor("xterm")
@ -23,7 +20,7 @@ pipeline {
stage("Build & Deploy SNAPSHOT") { stage("Build & Deploy SNAPSHOT") {
agent { agent {
docker { docker {
image 'maven:3.6.3' image 'maven:3.6.3-openjdk-11'
args '-v $HOME:/var/maven' args '-v $HOME:/var/maven'
reuseNode true reuseNode true
} }
@ -36,7 +33,7 @@ pipeline {
stage("Release") { stage("Release") {
agent { agent {
docker { docker {
image 'maven:3.6.3' image 'maven:3.6.3-openjdk-11'
args '-v $HOME:/var/maven' args '-v $HOME:/var/maven'
reuseNode true reuseNode true
} }