forked from BLOCKFANTASY/LOOHP-Limbo
Update Jenkinsfile
This commit is contained in:
parent
192cc02ec2
commit
e94ed4389d
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue