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

WIP

parent 62244632
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -10,9 +10,9 @@ pipeline {
                sh 'mvn -B -DskipTests clean package' 
            }
        }
        stages{
        stage('Test') {
                agent{
            steps{
                script {
                    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") {
                            /* Wait until mysql service is up */
@@ -23,6 +23,7 @@ pipeline {
                        
                    }
                }
            }
            
            post {
                always {
@@ -32,4 +33,3 @@ pipeline {
        }
    }
}
 No newline at end of file
}
 No newline at end of file