Merge pull request #5 from cloudogu/feature/4_update_jenkinsfile

Updates jenkinsfile
This commit is contained in:
Robert Auer 2019-02-18 07:31:59 +01:00 committed by GitHub
commit a99b5f3e16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
Jenkinsfile vendored
View file

@ -28,18 +28,16 @@ node {
}
String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1"
parallel(
test: {
stage('Test') {
mvn "${jacoco}:prepare-agent test ${jacoco}:report"
}
},
integrationTest: {
stage('Integration Test') {
mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration"
}
}
)
stage('Test') {
mvn "${jacoco}:prepare-agent test ${jacoco}:report"
}
stage('Integration Test') {
mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration"
}
stage('Static Code Analysis') {
@ -49,7 +47,7 @@ node {
}
stage('Deploy') {
mvn.useDeploymentRepository([id: cesFqdn, url: "${cesUrl}/nexus", credentialsId: credentialsId, type: 'Nexus3'])
mvn.useDeploymentRepository([id: cesFqdn, url: "${cesUrl}/nexus", credentialsId: credentialsId, type: 'Nexus3'])
mvn.deployToNexusRepository('-Dmaven.javadoc.failOnError=false')
}