Skip to content

Commit

Permalink
fix: run within the withBeatsEnv context
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Apr 17, 2024
1 parent 020232c commit 1b442b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,6 @@ def generateLinuxStep(beat) {
withNode(labels: 'ubuntu-22.04 && immutable') {
withEnv(["HOME=${env.WORKSPACE}", "PLATFORMS=${linuxPlatforms()}", "BEATS_FOLDER=${beat}"]) {
withGithubNotify(context: "Packaging Linux ${beat}") {
dir("${BASE_DIR}"){
if (beat.equals('x-pack/agentbeat') || beat.equals('x-pack/osquerybeat')) {
sh(label: 'install msitools', script: '.buildkite/scripts/install-msitools.sh')
}
}
deleteDir()
release('snapshot')
dir("${BASE_DIR}"){
Expand Down Expand Up @@ -384,6 +379,11 @@ def release(type){
withEnv([
"DEV=${!type.equals('staging')}"
]) {
dir("${BASE_DIR}"){
if (env.BEATS_FOLDER.equals('x-pack/agentbeat') || env.BEATS_FOLDER.equals('x-pack/osquerybeat')) {
sh(label: 'install msitools', script: '.buildkite/scripts/install-msitools.sh')
}
}
dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
dir("${env.BEATS_FOLDER}") {
sh(label: "mage package ${type} ${env.BEATS_FOLDER} ${env.PLATFORMS}", script: 'mage package')
Expand Down

0 comments on commit 1b442b0

Please sign in to comment.