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

Manual trigger fails with jquery error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • Jenkins ver. 1.609.2
      Delivery Pipeline plugin 0.9.7
      Build pipeline plugin 1.4.8

      Web browser: chrome

      I've a downstream project setup with a manual trigger. On the delivery pipeline view, I've enabled the manual triggers so I see the button to trigger a manual downstream. The downstream job I'm trying to trigger is named "(master) - Deploy - Notification Facade Service - Qual" without the quotes

      When I click on the manual downstream job from the delivery pipeline view, it fails with the following javascript stack on Chrome:

      Uncaught Error: Syntax error, unrecognized expression: #manual-task-(master)_DeployNotification_Facade_Service-_Qual0
      Sizzle.error @ jquery.full.js:1491
      Sizzle.tokenize @ jquery.full.js:2108
      Sizzle.select @ jquery.full.js:2512
      Sizzle @ jquery.full.js:888
      jQuery.fn.extend.find @ jquery.full.js:2728
      jQuery.fn.init @ jquery.full.js:2845
      jQuery @ jquery.full.js:73
      triggerManual @ pipe.js:429
      onclick @ (index):1

      I'm suspecting that this is happening because the my Jenkins job name has "(" and ")" in the name which is meta-characters for jquery http://api.jquery.com/category/selectors/ which means that the delivery pipeline plugin needs to escape those characters.

      I guess I can rename the job to not have jquery meta-characters, but I have like 50 jobs with parenthesis in the name and it's part of our naming convention when generating jenkins jobs with the DSL plugin. So it would be nice if the plugin can escape those special characters.

            patbos Patrik Boström
            akrem482 Akrem A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: