mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Generate and upload salt and tests coverage separately
This commit is contained in:
parent
7f77809043
commit
549274584b
33 changed files with 462 additions and 161 deletions
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -130,11 +130,20 @@ wrappedNode('kitchen-slave-mac', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -130,11 +130,20 @@ wrappedNode('kitchen-slave-mac', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,11 +142,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,11 +142,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,11 +142,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,11 +142,20 @@ wrappedNode('kitchen-slave', global_timeout, '#jenkins-prod-pr') {
|
|||
stage('Upload Coverage') {
|
||||
script {
|
||||
withCredentials([[$class: 'StringBinding', credentialsId: 'codecov-upload-token-salt', variable: 'CODECOV_TOKEN']]) {
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/coverage.xml ]; then
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -s artifacts/coverage/ -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/salt.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},salt"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-salt"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/salt.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
sh '''
|
||||
if [ -n "${FORCE_FULL}" -a "${FORCE_FULL}" = "true" -a -f artifacts/coverage/tests.xml ]; then
|
||||
export CODECOV_FLAGS="${CODECOV_FLAGS},tests"
|
||||
export REPORT_NAME="${TEST_PLATFORM}-${TEST_SUITE}-${TEST_TRANSPORT}-tests"
|
||||
(curl -L https://codecov.io/bash | /bin/sh -s -- -R $(pwd) -n "${REPORT_NAME}" -f artifacts/coverage/tests.xml -F "${CODECOV_FLAGS}") || true
|
||||
fi
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
15
noxfile.py
15
noxfile.py
|
@ -373,7 +373,20 @@ def _run_with_coverage(session, *test_cmd):
|
|||
# Sometimes some of the coverage files are corrupt which would trigger a CommandFailed
|
||||
# exception
|
||||
pass
|
||||
session.run('coverage', 'xml', '-o', os.path.join(REPO_ROOT, 'artifacts', 'coverage', 'coverage.xml'))
|
||||
# Generate report for salt code coverage
|
||||
session.run(
|
||||
'coverage', 'xml',
|
||||
'-o', os.path.join(REPO_ROOT, 'artifacts', 'coverage', 'salt.xml'),
|
||||
'--omit=tests/*',
|
||||
'--include=salt/*'
|
||||
)
|
||||
# Generate report for tests code coverage
|
||||
session.run(
|
||||
'coverage', 'xml',
|
||||
'-o', os.path.join(REPO_ROOT, 'artifacts', 'coverage', 'tests.xml'),
|
||||
'--omit=salt/*',
|
||||
'--include=tests/*'
|
||||
)
|
||||
|
||||
|
||||
def _runtests(session, coverage, cmd_args):
|
||||
|
|
Loading…
Add table
Reference in a new issue