diff --git a/Jenkinsfile b/Jenkinsfile index da68a73..6654963 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,17 @@ pipeline { - stage('Build'){ - agent { - docker { - image 'maven:3-alpine' - args '-v /root/.m2:/root/.m2' - } - } - steps { - sh 'mvn clean install' - stash includes: 'target/*.jar', name: 'targetfiles' + agent none + stages{ + stage('Build'){ + agent { + docker { + image 'maven:3-alpine' + args '-v /root/.m2:/root/.m2' + } + } + steps { + sh 'mvn clean install' + stash includes: 'target/*.jar', name: 'targetfiles' + } } } }