Skip to content

Commit f8d1173

Browse files
committed
ci: GOARCH is not defined when publishing but needed
Let's delegate this to the Go installer
1 parent 7931507 commit f8d1173

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.ci/Jenkinsfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ pipeline {
133133
steps {
134134
withGithubNotify(context: "Publish-${PLATFORM}") {
135135
withAWSEnv(secret: 'secret/observability-team/ci/service-account/apm-aws-lambda', forceInstallation: true, version: '2.4.10') {
136-
dir("${BASE_DIR}/apm-lambda-extension"){
137-
cmd(label: 'make publish-in-all-aws-regions', script: 'make publish-in-all-aws-regions')
138-
stash(includes: "*${PREFIX_ARN_FILE}", name: "arn-${isArm() ? 'arm' : 'amd'}")
139-
stash(includes: "bin/${BRANCH_NAME}-*.zip", name: "dist-${isArm() ? 'arm' : 'amd'}")
136+
withGoEnv(){
137+
dir("${BASE_DIR}/apm-lambda-extension"){
138+
cmd(label: 'make publish-in-all-aws-regions', script: 'make publish-in-all-aws-regions')
139+
stash(includes: "*${PREFIX_ARN_FILE}", name: "arn-${isArm() ? 'arm' : 'amd'}")
140+
stash(includes: "bin/${BRANCH_NAME}-*.zip", name: "dist-${isArm() ? 'arm' : 'amd'}")
141+
}
140142
}
141143
}
142144
}

0 commit comments

Comments
 (0)