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

delivery pipeline view fails manual trigger when job name contains parentheses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 2.235.5
      delivery-pipeline-plugin 1.2.0
    • Similar Issues:

      Description

      This is the same issue as was resported in JENKINS-30471, but that ticket was closed "couldn't reproduce" despite that the person responder to the ticket seemed fully aware of what the problem was.

       

      Delivery Pipeline View plugin should support any job name that Jenkins supports, including names that contain parentheses.

        Attachments

          Activity

          Hide
          pdbogen Patrick Bogen added a comment -

          To be more specific about the problem, if a job name has parentheses (or perhaps other undocumented invalid characters?) in it, attempting to trigger it via delivery pipeline results in a uncaught javascript exception like this:

           

          jquery.full.js:1502 Uncaught Error: Syntax error, unrecognized expression: #manual-task-foo_bar_Run_(0)_Dev_Unstable0
              at Function.Sizzle.error (jquery.full.js:1502)
              at Sizzle.tokenize (jquery.full.js:2159)
              at Sizzle.select (jquery.full.js:2580)
              at Function.Sizzle [as find] (jquery.full.js:903)
              at jQuery.fn.init.find (jquery.full.js:2826)
              at new jQuery.fn.init (jquery.full.js:2949)
              at jQuery (jquery.full.js:75)
              at triggerManual (pipe.js:580)
              at HTMLDivElement.onclick ((index):1) 
          Show
          pdbogen Patrick Bogen added a comment - To be more specific about the problem, if a job name has parentheses (or perhaps other undocumented invalid characters?) in it, attempting to trigger it via delivery pipeline results in a uncaught javascript exception like this:   jquery.full.js:1502 Uncaught Error: Syntax error, unrecognized expression: #manual-task-foo_bar_Run_(0)_Dev_Unstable0 at Function.Sizzle.error (jquery.full.js:1502) at Sizzle.tokenize (jquery.full.js:2159) at Sizzle.select (jquery.full.js:2580) at Function.Sizzle [as find] (jquery.full.js:903) at jQuery.fn.init.find (jquery.full.js:2826) at new jQuery.fn.init (jquery.full.js:2949) at jQuery (jquery.full.js:75) at triggerManual (pipe.js:580) at HTMLDivElement.onclick ((index):1)
          Hide
          pdbogen Patrick Bogen added a comment -

          (and, subsequent to that uncaught error, the job is not triggered as expected.)

          Show
          pdbogen Patrick Bogen added a comment - (and, subsequent to that uncaught error, the job is not triggered as expected.)

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pdbogen Patrick Bogen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: