build: fix upload of coverage
@@ -510,20 +510,17 @@ def cmake(String directory, Map args_map) {
*/
def publishCoverage() {
echo "Start publication of coverage data"
- def uniquePrefix = 'publishCoverage'
- def uploadDir = "${uniquePrefix}/${env.BRANCH_NAME}/${env.STAGE_NAME}"
+ def uploadDir = "coverage/${env.BRANCH_NAME}/${env.STAGE_NAME}"
sh "mkdir -p ${uploadDir}"
- sh "mv build/coverage ${uploadDir}"
+ sh "mv -v -T build/coverage ${uploadDir}"
sshPublisher(publishers: [
sshPublisherDesc(
configName: 'doc.libelektra.org',
transfers: [
sshTransfer(
- sourceFiles: '${uploadDir}/**',
- removePrefix: uniquePrefix,
- remoteDir: 'coverage'
+ sourceFiles: uploadDir + '/**',
)
])
])
