Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 6a78476

Browse files
mdelapenyav1v
andauthored
chore: pass inline env vars to commands
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
1 parent 30e8530 commit 6a78476

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.ci/e2eFleetServer.groovy

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ pipeline {
9292
gitCheckout(basedir: BEATS_BASE_DIR, branch: 'master', githubNotifyFirstTimeContributor: true, repo: "git@github.com:${env.BEATS_ELASTIC_REPO}.git", credentialsId: env.JOB_GIT_CREDENTIALS)
9393
dir("${BEATS_BASE_DIR}/x-pack/elastic-agent") {
9494
withGoEnv(){
95-
withEnv(["DEV=true", "SNAPSHOT=true", "PLATFORMS='+all linux/amd64'"]) {
96-
sh(label: 'Build Fleet Server', script: 'mage package')
97-
}
95+
sh(label: 'Build Fleet Server', script: 'DEV=true SNAPSHOT=true PLATFORMS="+all linux/amd64" mage package')
9896
}
9997
}
10098
dir("${BEATS_BASE_DIR}/x-pack") {
@@ -111,9 +109,7 @@ pipeline {
111109
steps {
112110
dir("${BEATS_BASE_DIR}/x-pack/elastic-agent") {
113111
withGoEnv(){
114-
withEnv(["AGENT_DROP_PATH='${env.AGENT_DROP_PATH}'", "DEV=true", "SNAPSHOT=true", "PLATFORMS='+all linux/amd64'"]) {
115-
sh(label: 'Build Fleet Server', script: 'mage package')
116-
}
112+
sh(label: 'Build Fleet Server', script: "AGENT_DROP_PATH='${env.AGENT_DROP_PATH}' DEV=true SNAPSHOT=true PLATFORMS='+all linux/amd64' mage package")
117113
}
118114
}
119115
}

0 commit comments

Comments
 (0)