Commit 62244632 authored by Luca Verardo's avatar Luca Verardo
Browse files

WIP

parent f7f26f04
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ pipeline {
                sh 'mvn -B -DskipTests clean package' 
            }
        }
        stages{
            stage('Test') {
                agent{
                    docker.image('mysql').withRun('-e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=mentorarc -e MYSQL_USER=mentorarc -e MYSQL_PASSWORD=mentorarc') { c ->
                        docker.image('maven:3-alpine').inside("--link ${c.id}:db") {
@@ -21,7 +23,7 @@ pipeline {
                        
                    }
                }
        stage('Test') {
                
                post {
                    always {
                        junit 'target/surefire-reports/*.xml'
@@ -30,3 +32,4 @@ pipeline {
            }
        }
    }
}
 No newline at end of file