Try to retrieve dynamic axis value from Jenkins global properties straight away#6
Try to retrieve dynamic axis value from Jenkins global properties straight away#6poolik wants to merge 1 commit intojenkinsci:masterfrom
Conversation
…aight away This makes sure that if the dynamic value comes from Jenkins global variable then the matrix job will have active configurations correctly set / shown right away. Otherwise before the build has run (or after a restart) the active configurations of the matrix job won't reflect the dynamic axis values as they are only computed during the first build. Potentially could expand this to try to load the value from System.getenv() as well.
|
@oleg-nenashev perhaps you could take a look and provide feedback or merge? |
|
@oleg-nenashev a gentle reminder of this open pull request, hopefully you can find the time to review. |
|
Hmm, thanks for the ping. |
|
I'd say it's rather an architecture bug in the plugin. A proper fix would be to add dynamic calculation of the layout for UI. Otherwise your project may display outdated value if somebody sets a global variable, then configures the job and modifies the property again. |
This makes sure that if the dynamic value comes from Jenkins global variable then the matrix job will have active configurations correctly set / shown right away. Otherwise before the build has run (or after a restart) the active configurations of the matrix job won't reflect the dynamic axis values as they are only computed during the first build.
Potentially could expand this to try to load the value from System.getenv() as well.