Skip to content

Commit ac200c2

Browse files
authored
Merge pull request #26 from ruhan1/master-auto-ci
Add Jenkinsfile
2 parents 9e087de + 76f675d commit ac200c2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Jenkinsfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
steps {
14+
sh 'mvn -B -V clean verify -Prun-its -Pci'
15+
}
16+
}
17+
stage('Deploy') {
18+
when { branch 'master' }
19+
steps {
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

Comments
 (0)