Skip to content

Commit

Permalink
[packaging][ci] simplify input parameters (#28183)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 29, 2021
1 parent f595b05 commit 4b1f699
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ pipeline {
}
parameters {
booleanParam(name: 'macos', defaultValue: false, description: 'Allow macOS stages.')
booleanParam(name: 'linux', defaultValue: true, description: 'Allow linux stages.')
booleanParam(name: 'arm', defaultValue: true, description: 'Allow ARM stages.')
}
stages {
stage('Filter build') {
Expand Down Expand Up @@ -125,12 +123,6 @@ pipeline {
stage('Package Linux'){
agent { label 'ubuntu-18 && immutable' }
options { skipDefaultCheckout() }
when {
beforeAgent true
expression {
return params.linux
}
}
environment {
HOME = "${env.WORKSPACE}"
PLATFORMS = [
Expand Down Expand Up @@ -224,12 +216,6 @@ pipeline {
stage('Package Docker images for linux/arm64'){
agent { label 'arm' }
options { skipDefaultCheckout() }
when {
beforeAgent true
expression {
return params.arm
}
}
environment {
HOME = "${env.WORKSPACE}"
PACKAGES = "docker"
Expand Down Expand Up @@ -335,7 +321,7 @@ def tagAndPush(Map args = [:]) {
}
// supported image flavours
def variants = ["", "-oss", "-ubi8"]
//
//
if(beatName == 'elastic-agent'){
variants.add("-complete")
}
Expand Down

0 comments on commit 4b1f699

Please sign in to comment.