Skip to content
Jenkinsfile 468 B
Newer Older
Luca Verardo's avatar
Luca Verardo committed
pipeline {
    agent {
        docker {
            image 'maven:3-alpine'
        }
    }
Luca Verardo's avatar
Luca Verardo committed
    stages {
        stage('Build') { 
            steps {
                sh 'mvn -B -DskipTests clean package' 
Luca Verardo's avatar
Luca Verardo committed
            }
Zegorax's avatar
Zegorax committed
        }
Luca Verardo's avatar
Luca Verardo committed
        stage('Test') {
            steps {
                sh 'mvn test'
            }
            post {
                always {
                    junit 'target/surefire-reports/*.xml'
                }
            }
        }
Zegorax's avatar
Zegorax committed
    }
Luca Verardo's avatar
Luca Verardo committed
}