diff --git a/Jenkinsfile b/Jenkinsfile index 7b54b793b..03ef475af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,9 +3,23 @@ pipeline { stages { stage ('Checkstyle') { steps { - sh 'mvn validate' + sh 'mvn checkstyle:checkstyle' archiveArtifacts artifacts: 'target/checkstyle-report.xml', allowEmptyArchive: true } } + stage ('Test') { + steps { + sh 'echo "Starting tests..."' + sh 'mvn test' + junit 'target/surefire-reports/*.xml' + } + } + stage ('Build') { + steps { + sh 'echo "Building..."' + sh 'mvn clean package' + archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false + } + } } } \ No newline at end of file