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

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

      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).

          [JENKINS-31159] Release post build steps for Matrix project cannot be set from UI

          Frédéric Chuong created issue -
          Frédéric Chuong made changes -
          Description Original: 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
          {code:xml}
          <!-- 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}"/>
          {code}

          is duplicated at line 160:
          {code:xml}
          <!-- 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}"/>
          {code}

          whereas it should use {{postMatrixBuildSteps}} instead of {{postBuildSteps}}

          The only workaround is NOT to rely on Jenkins Jelly UI to configure such job (XML editing / Jenkins API)
          New: 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
          {code:xml}
          <!-- 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}"/>
          {code}

          is duplicated at line 160:
          {code:xml}
          <!-- 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}"/>
          {code}

          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).
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166340 ] New: JNJira + In-Review [ 182360 ]

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

              Created:
              Updated: