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

[toolenv] Extract inline event handler in hudson/plugins/toolenv/ToolEnvBuildWrapper/config.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • toolenv-plugin

      Problem

      == Inline Event Handler
      Line: 8
      ----
      <input type="checkbox"
                       onclick="
                       var f = document.getElementById('vars.field');
                       var o = f.value;
                       f.value = this.checked ? (o ? o + ',${v}' : '${v}') : o.replace(/,${v}/, '').replace(/^${v},?/, '')"
                       checked="${instance['vars'].contains(v) ? 'true' : null}"/>
      ----
      

      Solution

      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: