Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31159

Release post build steps for Matrix project cannot be set from UI

XMLWordPrintable

      Assigning release build steps to After failed or successful release build and all matrix configurations is impossible from Jelly UI because of code duplication in src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly 2.5.3:

      Line 105

      		    <!-- Post build steps -->
      		    <label class="attach-previous">${%After failed or successful release build}</label>
      		    <f:hetero-list name="postBuildSteps" hasHeader="true"
      		             descriptors="${h2.getBuildSteps(it)}"
      		             items="${instance.postBuildSteps}"
      		             addCaption="${%Add release step}"/>
      

      is duplicated at line 160:

      		    <!-- Post build steps -->
      		    <label class="attach-previous">${%After failed or successful release build and all matrix configurations}</label>
      		    <f:hetero-list name="postBuildSteps" hasHeader="true"
      		             descriptors="${h2.getBuildSteps(it)}"
      		             items="${instance.postBuildSteps}"
      		             addCaption="${%Add release step}"/>
      

      whereas it should use postMatrixBuildSteps instead of postBuildSteps.

      This results in the post build steps steps to be duplicated each time the page is saved.

      The only workaround is NOT to rely on Jenkins Jelly UI to configure such job (XML editing / Jenkins API).

            petehayes Peter Hayes
            fchuong Frédéric Chuong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: