We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e087de commit 76f675dCopy full SHA for 76f675d
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