You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally filed this as https://issues.jenkins.io/browse/JENKINS-72790 when I thought it was a general problem with pipeline-build-step-plugin. Since then I now think it's specifically this plugin.
Newer versions of the build() plugin now call isValid() before triggering the downstream pipeline. This fails for pipelines that use RestListParam. I believe it's because getValues() isn't called when accessed in that way.
Create two pipelines. One pipeline (downstream) with a working RestListParam and one (upstream) that calls build() to trigger the downstream pipeline with a known valid option to RestListParam.
Run the upstream pipeline. It should fail when it tries to call build() because isValid will return false.
Expected behavior
The downstream pipeline to be triggered without error.
Versions (please complete the following information):
I initially encountered this problem 6 months ago, so I don't have the exact versions in use at the time. It worked with pipeline-build-step-plugin pre-539.v8c889169451f and fails with 539.v8c889169451f or later.
Additional context
I think the simple fix would be to add this to isValid(). I haven't had a chance to test it yet, so I don't know if the call will work in this context or if there will be side-effects.
if (values.isEmpty()) {
getValues();
}
The text was updated successfully, but these errors were encountered:
Describe the bug
I originally filed this as https://issues.jenkins.io/browse/JENKINS-72790 when I thought it was a general problem with pipeline-build-step-plugin. Since then I now think it's specifically this plugin.
Newer versions of the build() plugin now call isValid() before triggering the downstream pipeline. This fails for pipelines that use RestListParam. I believe it's because
getValues()
isn't called when accessed in that way.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The downstream pipeline to be triggered without error.
Versions (please complete the following information):
I initially encountered this problem 6 months ago, so I don't have the exact versions in use at the time. It worked with pipeline-build-step-plugin pre-539.v8c889169451f and fails with 539.v8c889169451f or later.
Additional context
I think the simple fix would be to add this to
isValid()
. I haven't had a chance to test it yet, so I don't know if the call will work in this context or if there will be side-effects.The text was updated successfully, but these errors were encountered: