Skip to content

Commit

Permalink
Tests need to be stored in the workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Aug 6, 2020
1 parent 0395eb8 commit 2f21086
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -394,21 +394,21 @@ def junitAndStore(Map args = [:]) {

/**
* This method populates the test output using the runbld approach. For such it requires the
* global variable stashedTestReports.
* global variable stashedTestReports.
* TODO: should be moved to the shared library
*/
def runbld() {
catchError(buildResult: 'SUCCESS', message: 'runbld post build action failed.') {
if (stashedTestReports) {
def jobName = 'elastic+beats'
if (isPR()) {
jobName = 'elastic+beats+pull-request'
}
def jobName = isPR() ? 'elastic+beats+pull-request' : 'elastic+beats'
deleteDir()
unstashV2(name: 'source', bucket: "${JOB_GCS_BUCKET}", credentialsId: "${JOB_GCS_CREDENTIALS}")
// Unstash the test reports
stashedTestReports.each { k, v ->
dir(k) {
unstash(v)
dir("${env.BASE_DIR}") {
// Unstash the test reports
stashedTestReports.each { k, v ->
dir(k) {
unstash(v)
}
}
}
sh(label: 'Process JUnit reports with runbld',
Expand Down

0 comments on commit 2f21086

Please sign in to comment.