Skip to content

Commit

Permalink
Merge pull request #37 from ruhan1/master-auto-ci
Browse files Browse the repository at this point in the history
Add Jenkinsfile
  • Loading branch information
ruhan1 authored Aug 13, 2019
2 parents f345140 + 0ac46d6 commit 7141307
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pipeline {
agent { label 'maven' }
stages {
stage('Prepare') {
steps {
sh 'printenv'
}
}
stage('Build') {
when {
expression { env.CHANGE_ID != null } // Pull request
}
steps {
sh 'mvn -B -V clean verify -Prun-its -Pci'
}
}
stage('Deploy') {
when { branch 'master' }
steps {
echo "Deploy"
sh 'mvn help:effective-settings -B -V clean deploy -e -s ~/sonatype/settings.xml'
}
}
}
}

0 comments on commit 7141307

Please sign in to comment.