Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] fix No such property: APM_URL_BASE #185

Merged
merged 6 commits into from
Oct 22, 2020
Merged
Changes from 2 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
14 changes: 10 additions & 4 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,15 @@ pipeline {
unstash 'source'
dir("${BASE_DIR}"){
sh(label: 'make batch',
script: """#!/bin/bash
echo "beats_url_base: ${BEATS_URL_BASE}" > run-settings-jenkins.yml
echo "apm_url_base: ${APM_URL_BASE}" >> run-settings-jenkins.yml
script: """#!/bin/bash -x
v1v marked this conversation as resolved.
Show resolved Hide resolved
## Skip BEATS if no params.
if [ -n "${env.BEATS_URL_BASE?.trim()}" ] ; then
echo "beats_url_base: ${env.BEATS_URL_BASE}" > run-settings-jenkins.yml
fi
## Skip APM if no params.
if [ -n "${env.APM_URL_BASE?.trim()}" ] ; then
echo "apm_url_base: ${env.APM_URL_BASE}" >> run-settings-jenkins.yml
fi
echo "version: ${VERSION}" >> run-settings-jenkins.yml
RUN_SETTINGS=jenkins make batch""")
}
Expand All @@ -74,7 +80,7 @@ pipeline {
always {
dir("${BASE_DIR}"){
junit(allowEmptyResults: true, keepLongStdio: true, testResults: "logs/*.xml")
archiveArtifacts(allowEmptyArchive: true, artifacts: 'logs/**')
archiveArtifacts(allowEmptyArchive: true, artifacts: 'logs/**,run-settings-jenkins.yml')
sh(label: 'make clean', script: 'make clean')
}
}
Expand Down