We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e087de + 76f675d commit ac200c2Copy full SHA for ac200c2
1 file changed
Jenkinsfile
@@ -0,0 +1,25 @@
1
+pipeline {
2
+ agent { label 'maven' }
3
+ stages {
4
+ stage('Prepare') {
5
+ steps {
6
+ sh 'printenv'
7
+ }
8
9
+ stage('Build') {
10
+ when {
11
+ expression { env.CHANGE_ID != null } // Pull request
12
13
14
+ sh 'mvn -B -V clean verify -Prun-its -Pci'
15
16
17
+ stage('Deploy') {
18
+ when { branch 'master' }
19
20
+ echo "Deploy"
21
+ sh 'mvn help:effective-settings -B -V clean deploy -e -s ~/sonatype/settings.xml'
22
23
24
25
+}
0 commit comments