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

delivery pipeline view fails manual trigger when job name contains parentheses

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.235.5
      delivery-pipeline-plugin 1.2.0

      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.

          [JENKINS-64596] delivery pipeline view fails manual trigger when job name contains parentheses

          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) 

          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)

          Patrick Bogen added a comment -

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

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

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

              Created:
              Updated: