From a2442b364fa2c8ddeddc465f7ce3964ff2841204 Mon Sep 17 00:00:00 2001 From: Ivan Fernandez Calvo Date: Thu, 4 Jul 2019 23:00:58 +0200 Subject: [PATCH] fix: remove dead code with an undefined variable (#516) --- .ci/Jenkinsfile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 5918731a7..0a8760c16 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -194,20 +194,6 @@ pipeline { } post { cleanup { - script{ - if(pythonTasksGen?.results){ - writeJSON(file: 'results.json', json: toJSON(pythonTasksGen.results), pretty: 2) - def mapResults = ["${params.agent_integration_test}": pythonTasksGen.results] - def processor = new ResultsProcessor() - processor.processResults(mapResults) - archiveArtifacts allowEmptyArchive: true, artifacts: 'results.json,results.html', defaultExcludes: false - catchError(buildResult: 'SUCCESS') { - def datafile = readFile(file: "results.json") - def json = getVaultSecret(secret: 'secret/apm-team/ci/apm-server-benchmark-cloud') - sendDataToElasticsearch(es: json.data.url, data: datafile, restCall: '/jenkins-builds-test-results/_doc/') - } - } - } notifyBuildResult() } }