HBASE-26318 Publish test logs for flaky jobs to nightlies (#3717)
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
parent
d309276121
commit
97b3eca80a
|
@ -29,6 +29,9 @@ pipeline {
|
||||||
timeout (time: 2, unit: 'HOURS')
|
timeout (time: 2, unit: 'HOURS')
|
||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
|
environment {
|
||||||
|
ASF_NIGHTLIES = 'https://nightlies.apache.org'
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
booleanParam(name: 'DEBUG', defaultValue: false, description: 'Produce a lot more meta-information.')
|
booleanParam(name: 'DEBUG', defaultValue: false, description: 'Produce a lot more meta-information.')
|
||||||
}
|
}
|
||||||
|
@ -72,8 +75,19 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
junit testResults: "**/surefire-reports/*.xml", allowEmptyResults: true
|
junit testResults: "**/surefire-reports/*.xml", allowEmptyResults: true
|
||||||
// TODO compress these logs
|
sshPublisher(publishers: [
|
||||||
archiveArtifacts artifacts: 'includes.txt,**/surefire-reports/*,**/test-data/*,target/machine/*'
|
sshPublisherDesc(configName: 'Nightlies',
|
||||||
|
transfers: [
|
||||||
|
sshTransfer(remoteDirectory: "hbase/${JOB_NAME}/${BUILD_NUMBER}",
|
||||||
|
sourceFiles: "**/surefire-reports/*,**/test-data/*"
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
])
|
||||||
|
sh '''#!/bin/bash -e
|
||||||
|
echo "${ASF_NIGHTLIES}/hbase/${JOB_NAME}/${BUILD_NUMBER}" > "test_logs.txt"
|
||||||
|
'''
|
||||||
|
archiveArtifacts artifacts: 'includes.txt,test_logs.txt,target/machine/*'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue