Create Jenkinsfile

This commit is contained in:
MoMaMi 2020-09-20 20:24:44 +04:00 committed by GitHub
parent 83ab6d9472
commit eb06f0fad3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,18 @@
pipeline {
agent none
stages {
stage('Back-end build') {
agent {
docker {
image 'maven'
label 'master'
args '-u root'
}
}
steps {
sh 'mvn clean package'
stash includes: 'target/*.war', name: 'pet'
}
}
}
}