Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pipeline {
booleanParam(name: 'end_to_end_tests_ci', defaultValue: false, description: 'Enable APM End-to-End tests')

// disabled by default, not required for merge
// opt-in with 'ci:benchmarks' tag on PR
booleanParam(name: 'bench_ci', defaultValue: false, description: 'Enable benchmarks')

// disabled by default, not required for merge
Expand Down Expand Up @@ -289,7 +290,7 @@ pipeline {
* The result JSON files are also archive into Jenkins.
*/
stage('Benchmarks') {
agent { label 'metal' }
agent { label 'linux && metal' }
options { skipDefaultCheckout() }
environment {
NO_BUILD = "true"
Expand All @@ -300,6 +301,7 @@ pipeline {
anyOf {
branch 'main'
expression { return env.GITHUB_COMMENT?.contains('benchmark tests') }
expression { matchesPrLabel(label: 'ci:benchmarks') }
expression { return params.bench_ci }
}
}
Expand All @@ -315,6 +317,9 @@ pipeline {
}
}
post {
cleanup {
deleteDir()
}
always {
archiveArtifacts(allowEmptyArchive: true,
artifacts: "${BASE_DIR}/${RESULT_FILE}",
Expand Down