diff --git a/Jenkinsfile b/Jenkinsfile index 27c46f4f5d8..b84bec4d058 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -107,7 +107,7 @@ try { ], tools: [[$class: 'JUnitType', pattern: 'xunit-reports/**/*.xml']] ]) - archiveArtifacts allowEmptyArchive: true, artifacts: 'acceptance-logs/*.txt, acceptance-logs/*.png' + archiveArtifacts allowEmptyArchive: true, artifacts: 'acceptance-logs/*.txt, acceptance-logs/*.png, acceptance-logs/*.html' } }, 'centos7': { @@ -122,7 +122,7 @@ try { ], tools: [[$class: 'JUnitType', pattern: 'xunit-reports/**/*.xml']] ]) - archiveArtifacts allowEmptyArchive: true, artifacts: 'acceptance-logs/*.txt, acceptance-logs/*.png' + archiveArtifacts allowEmptyArchive: true, artifacts: 'acceptance-logs/*.txt, acceptance-logs/*.png, acceptance-logs/*.html' } } if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') { diff --git a/features/bootstrap/RestApiContext.php b/features/bootstrap/RestApiContext.php index b687e6aa3de..dbf6f7e5248 100644 --- a/features/bootstrap/RestApiContext.php +++ b/features/bootstrap/RestApiContext.php @@ -51,9 +51,9 @@ public function restApiAreCalled() $this->logfile = tempnam('/tmp', 'rest_api_log'); exec( 'newman run' . + ' --reporters html --reporter-html-export ' . $this->logfile . ' --environment ' . $this->envfile . - ' tests/rest_api/rest_api.postman_collection.json' . - ' > ' . $this->logfile, + ' tests/rest_api/rest_api.postman_collection.json', $output, $retval ); @@ -69,7 +69,7 @@ public function theyReplyAsPerSpecifications() if (!($this->retval == 0)) { copy( $this->logfile, - $this->composeFiles['log_directory'] . '/' . basename($this->logfile) . '.txt' + $this->composeFiles['log_directory'] . '/' . basename($this->logfile) . '.html' ); unlink($this->logfile); throw new \Exception(