Skip to content

Commit

Permalink
Update Platform selector in packaging job (elastic#17908)
Browse files Browse the repository at this point in the history
Specify each target platform that we want a package for.
This works around an issue with filters mixing adds ('!') and removes ('+')
and the default set that gets applied in this case.
  • Loading branch information
andrewkroh authored Apr 23, 2020
1 parent cd5fefd commit f1ce8e1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,19 @@ pipeline {
}
environment {
HOME = "${env.WORKSPACE}"
PLATFORMS = "!darwin +linux/armv7 +linux/ppc64le +linux/s390x +linux/mips64"
PLATFORMS = [
'+all',
'linux/amd64',
'linux/386',
'linux/arm64',
'linux/armv7',
'linux/ppc64le',
'linux/mips64',
'linux/s390x',
'windows/amd64',
'windows/386',
(params.macos ? '' : 'darwin/amd64'),
].join(' ')
}
steps {
release()
Expand All @@ -94,7 +106,10 @@ pipeline {
}
environment {
HOME = "${env.WORKSPACE}"
PLATFORMS = "!defaults +darwin/amd64"
PLATFORMS = [
'+all',
'darwin/amd64',
].join(' ')
}
steps {
withMacOSEnv(){
Expand Down

0 comments on commit f1ce8e1

Please sign in to comment.