diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..d72cdae --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } +}