27 lines
621 B
Plaintext
27 lines
621 B
Plaintext
pipeline {
|
|
agent any
|
|
parameters {
|
|
choice(name: 'OS', choices: ['android', 'ios'], description: 'Pick your OS something')
|
|
}
|
|
environment {
|
|
ENV = "$OS"
|
|
}
|
|
stages {
|
|
stage ('Deploy ANDROID') {
|
|
when {
|
|
environment name: "ENV", value: "android"
|
|
}
|
|
steps {
|
|
echo 'Android execution'
|
|
}
|
|
}
|
|
stage ('Deploy IOS') {
|
|
when {
|
|
environment name: "ENV", value: "ios"
|
|
}
|
|
steps {
|
|
echo 'ios execution'
|
|
}
|
|
}
|
|
}
|
|
} |