I would like to set the parameters default value dynamically that should be depended on condition. Is that possible?
pipeline {
agent any
parameters {
string(name: 'test', defaultValue: '', description: 'a string')
stages {
stage('Example') {
steps {
def type = "test"
if(type == "test") {
set defaultValue of parameter:test
}
}
}
}}}