fix: remove dead code with an undefined variable
@@ -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()
}
}
