Is it possible to get changes of the parameterized pipeline on the fly after making changes there?
For example I have a pipeline code:
properties([
parameters([
string(name: 'TARGET_HOST', defaultValue: 'test', description: 'Host on which artifact will be deployed'),
string(name: 'ARTIFACT_ID', defaultValue: 'test', description: 'Name of artifact which will be doployed'),
string(name: 'ARTIFACT_VERSION', defaultValue: '1', description: 'Version of artifact which will be deployed')
])
])
And I decided to change defaultValue for TARGET_HOST parameter from test to 1.
After such changes, I'll need to run job in order it apply changes and only running it for the second time after making changes, I'll obtain applied changes.
Is there a way to make job pick up changes during first run after making them?
So far I found a way to do it with Input structure:
def values = input id: 'Run-test-suites',
message: 'Workflow Configuration',
ok: 'Run',
parameters: [
[
$class : 'BooleanParameterDefinition',
defaultValue: true,
name : 'checkboxVal',
description : 'Testing of checkbox param'
],
[
$class : 'StringParameterDefinition',
defaultValue: "test",
name : 'stringVal',
description : 'Testing of string param'
],
[
$class : 'ChoiceParameterDefinition', choices: '1\n2\n3',
name : 'choiceVal',
description: 'Testing of choice parameter'
]
]
But I want to have something more flexible.