diff --git a/Jenkinsfile b/Jenkinsfile index ea9e3b6373b..1092c37294d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -71,15 +71,24 @@ pipeline { timeout(time: 5, unit: 'HOURS') } steps { - sh """#!/bin/bash - ulimit -a - mvn clean verify -Dhbase.profile=${HBASE_PROFILE} -B - """ + dir("HBASE_${HBASE_PROFILE}") { + checkout scm + sh """#!/bin/bash + ulimit -a + mvn clean verify -Dhbase.profile=${HBASE_PROFILE} -B + """ + } } post { always { - junit '**/target/surefire-reports/TEST-*.xml' - junit '**/target/failsafe-reports/TEST-*.xml' + archiveArtifacts artifacts: "HBASE_${HBASE_PROFILE}/**/target/surefire-reports/*.txt,\ + HBASE_${HBASE_PROFILE}/**/target/failsafe-reports/*.txt,\ + HBASE_${HBASE_PROFILE}/**/target/surefire-reports/*.dumpstream,\ + HBASE_${HBASE_PROFILE}/**/target/failsafe-reports/*.dumpstream,\ + HBASE_${HBASE_PROFILE}/**/target/surefire-reports/*.dump,\ + HBASE_${HBASE_PROFILE}/**/target/failsafe-reports/*.dump" + junit "HBASE_${HBASE_PROFILE}/**/target/surefire-reports/TEST-*.xml" + junit "HBASE_${HBASE_PROFILE}/**/target/failsafe-reports/TEST-*.xml" } } }