Add test jenkinsfile
This commit is contained in:
parent
7e4b10f56f
commit
712aa61f3a
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -2,6 +2,9 @@
|
|||
// see https://jenkins.io/doc/book/pipeline/syntax/
|
||||
|
||||
pipeline {
|
||||
environment {
|
||||
MVN_SET = credentials('maven_settings')
|
||||
}
|
||||
agent { docker { image 'maven:3.6.3' } }
|
||||
triggers {
|
||||
pollSCM "* * * * *"
|
||||
|
@ -19,7 +22,7 @@ pipeline {
|
|||
|
||||
stage("Build & Deploy SNAPSHOT") {
|
||||
steps {
|
||||
sh "mvn -B deploy"
|
||||
sh "mvn -s $MVN_SET -B deploy"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user