From 582bf1833975bf277f2449ebf1a01c9efd9d9cd4 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 23 Jul 2020 16:37:12 +0100 Subject: [PATCH] [CI] remove codecov step (#20102) --- .ci/scripts/report-codecov.sh | 18 ------------------ .travis.yml | 11 +---------- Jenkinsfile | 3 --- 3 files changed, 1 insertion(+), 31 deletions(-) delete mode 100755 .ci/scripts/report-codecov.sh diff --git a/.ci/scripts/report-codecov.sh b/.ci/scripts/report-codecov.sh deleted file mode 100755 index cd1ad38b73f..00000000000 --- a/.ci/scripts/report-codecov.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -set -exuo pipefail - -CODECOV_URL=https://codecov.io/bash -if [ -e /usr/local/bin/bash_standard_lib.sh ] ; then - # shellcheck disable=SC1091 - source /usr/local/bin/bash_standard_lib.sh - (retry 3 curl -sSLo codecov ${CODECOV_URL}) -else - curl -sSLo codecov ${CODECOV_URL} -fi - -for i in "$@" ; do - FILE="${i}/build/coverage/full.cov" - if [ -f "${FILE}" ]; then - bash codecov -f "${FILE}" - fi -done diff --git a/.travis.yml b/.travis.yml index 1fd774492ba..7809fe380b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -401,13 +401,4 @@ notifications: on_failure: always on_pull_requests: false rooms: - secure: "e25J5puEA31dOooTI4T+K+zrTs8XeWIGq2cgmiPt9u/g7eqWeQj1UJnVsr8GOu1RPDyuJZJHXqfrvuOYJTdHzXbwjD0JTbwwVVZMkkZW2SWZHG46HCXPiucjWXEr3hXJKBJDDpIx6VxrN7r17dejv1biQ8QuEFZfiB1H8kbH/ho=" - -after_success: - # Copy full.cov to coverage.txt because codecov.io requires this file - - test -f auditbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f auditbeat/build/coverage/full.cov - - test -f filebeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f filebeat/build/coverage/full.cov - - test -f heartbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f heartbeat/build/coverage/full.cov - - test -f libbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f libbeat/build/coverage/full.cov - - test -f metricbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f metricbeat/build/coverage/full.cov - - test -f packetbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f packetbeat/build/coverage/full.cov + secure: "e25J5puEA31dOooTI4T+K+zrTs8XeWIGq2cgmiPt9u/g7eqWeQj1UJnVsr8GOu1RPDyuJZJHXqfrvuOYJTdHzXbwjD0JTbwwVVZMkkZW2SWZHG46HCXPiucjWXEr3hXJKBJDDpIx6VxrN7r17dejv1biQ8QuEFZfiB1H8kbH/ho=" \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 0a3b5e55ddb..cbfa16a0b5a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -938,9 +938,6 @@ def withBeatsEnv(Map args = [:], Closure body) { if (archive) { archiveTestOutput(testResults: '**/build/TEST*.xml', artifacts: '**/build/TEST*.out') } - catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') { - sh(label: 'Report to Codecov', script: '.ci/scripts/report-codecov.sh auditbeat filebeat heartbeat journalbeat libbeat metricbeat packetbeat winlogbeat') - } } } }