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

Passing Reactive Reference Values to the build not available anymore

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using Formatted hidden HTML, since few days ago, it is not anymore possible to use a "hack" like
      return "<input name=\"value\" value=\"${ReactiveRefParam}\" class=\"setting-input\" type=\"text\">"

      First of all div is added with class formattedHtml_+parameterId and nothing is rendered in it, therefore, variable cannot be used in build. This was working up to like month ago. If I put a simple String as return value, value is rendered in this up mentioned div, but the input field is missing.

      Thanks

        Attachments

          Activity

          Hide
          damjanco Damjan Cvetković added a comment -

          Looking through the codes, looks like this div was even before, but then again no input fields inside...

          <?jelly escape-by-default='true' ?>
          <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"
            xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"
            xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
            <j:invokeStatic var="paramName" className="org.biouno.unochoice.util.Utils" method="createRandomParameterName">
              <j:arg type="java.lang.String" value="choice-parameter" />
              <j:arg type="java.lang.String" value="" />
            </j:invokeStatic>
            <j:set var="paramName" value="${paramName}" scope="parent" />
            <div id='formattedHtml_${paramName}'>
              <j:out value="${it.getChoicesAsString()}"/>
            </div>
          </j:jelly> 
          Show
          damjanco Damjan Cvetković added a comment - Looking through the codes, looks like this div was even before, but then again no input fields inside... <?jelly escape-by- default = ' true ' ?> <j:jelly xmlns:j= "jelly:core" xmlns:st= "jelly:stapler" xmlns:d= "jelly:define" xmlns:l= "/lib/layout" xmlns:t= "/lib/hudson" xmlns:f= "/lib/form" xmlns:i= "jelly:fmt" xmlns:p= "/lib/hudson/project" > <j:invokeStatic var = "paramName" className= "org.biouno.unochoice.util.Utils" method= "createRandomParameterName" > <j:arg type= "java.lang. String " value= "choice-parameter" /> <j:arg type= "java.lang. String " value="" /> </j:invokeStatic> <j:set var = "paramName" value= "${paramName}" scope= "parent" /> <div id= 'formattedHtml_${paramName}' > <j:out value= "${it.getChoicesAsString()}" /> </div> </j:jelly>
          Hide
          cle Christian Ley added a comment -

          We stumbled across the same issue, but it seems to be working again since the last update. I hope it works for you, too.

          Show
          cle Christian Ley added a comment - We stumbled across the same issue, but it seems to be working again since the last update. I hope it works for you, too.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          I couldn't reproduce it with the latest version either (thanks Christian Ley!). I suspect it was due to the markup formatter plugin integration that changed recently. In a previous release (2.4? Maybe 2.5?) a user contributed pull request fixed it by implementing a custom markup plugin formatter for active-choices.

          Closing as cannot reproduce, but let me know in case anyone sees this issue again. Thanks!

           

          Show
          kinow Bruno P. Kinoshita added a comment - I couldn't reproduce it with the latest version either (thanks Christian Ley !). I suspect it was due to the markup formatter plugin integration that changed recently. In a previous release (2.4? Maybe 2.5?) a user contributed pull request fixed it by implementing a custom markup plugin formatter for active-choices. Closing as cannot reproduce, but let me know in case anyone sees this issue again. Thanks!  

            People

            Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            damjanco Damjan Cvetković
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: