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

Support the ScriptTrigger (via XTrigger) plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have ScriptTrigger installed under the XTrigger umbrella plugin for a few triggers.
      For ScriptTrigger triggered plugin if I access this URL:
      http://<jenkins>/job/jobname/jobnum/api/xml?xpath=//cause&wrapper=causes
      I get this:
      <causes>
      <cause _class="org.jenkinsci.lib.xtrigger.XTriggerCause">
      <shortDescription>
      [ScriptTrigger] and stuff printed by ScriptTrigger script.
      </shortDescription>
      </cause>
      </causes>

      I will have a look at adding support.

        Attachments

        1. buildresulttrigger.png
          buildresulttrigger.png
          1 kB
        2. fstrigger.png
          fstrigger.png
          0.6 kB
        3. ivytrigger.png
          ivytrigger.png
          0.7 kB
        4. scripttrigger.png
          scripttrigger.png
          1 kB
        5. scripttrigger2.png
          scripttrigger2.png
          2 kB
        6. xtrigger.png
          xtrigger.png
          2 kB
        7. xtrigger-buildresulttrigger.png
          xtrigger-buildresulttrigger.png
          3 kB
        8. xtrigger-fstrigger.png
          xtrigger-fstrigger.png
          2 kB
        9. xtrigger-ivytrigger.png
          xtrigger-ivytrigger.png
          2 kB
        10. xtrigger-scripttrigger.png
          xtrigger-scripttrigger.png
          3 kB
        11. xtrigger-scripttrigger2.png
          xtrigger-scripttrigger2.png
          4 kB

          Activity

          jamesco James Coleman created issue -
          jamesco James Coleman made changes -
          Field Original Value New Value
          Description I have ScriptTrigger installed under the XTrigger umbrella plugin for a few triggers.
          For ScriptTrigger triggered plugin if I access this URL:
          http://&lt;jenkins&gt;/job/jobname/jobnum/api/xml?xpath=//cause&wrapper=causes
          I get this:
          <causes>
          <cause _class="org.jenkinsci.lib.xtrigger.XTriggerCause">
          <shortDescription>
          [ScriptTrigger] and stuff printed by ScriptTrigger script.
          </shortDescription>
          </cause>
          </causes>

          I will have a look at adding support.
          I get angry jenkins and "Oops!" and stackdump.

          The ScriptTrigger jobs are outputting incorrect xml for build cause.

          Oops!

          Stack trace

          java.io.IOException: Failed to do XPath/wrapper handling. Turn on FINER logging to view XML.
          at hudson.model.Api.doXml(Api.java:161)
                  . . . .
          at java.lang.Thread.run(Thread.java:745)
          Caused by: org.dom4j.DocumentException: Error on line 11 of document : An invalid XML character (Unicode: 0xc) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0xc) was found in the element content of the document.
          I have ScriptTrigger installed under the XTrigger umbrella plugin for a few triggers.
          For ScriptTrigger triggered plugin if I access this URL:
          http://&lt;jenkins&gt;/job/jobname/jobnum/api/xml?xpath=//cause&wrapper=causes
          I get this:
          <causes>
          <cause _class="org.jenkinsci.lib.xtrigger.XTriggerCause">
          <shortDescription>
          [ScriptTrigger] and stuff printed by ScriptTrigger script.
          </shortDescription>
          </cause>
          </causes>

          I will have a look at adding support.
          jamesc0 James Coleman made changes -
          Attachment xtrigger-scripttrigger.png [ 34370 ]
          Attachment scripttrigger.png [ 34371 ]
          Attachment xtrigger-fstrigger.png [ 34372 ]
          Attachment xtrigger-buildresulttrigger.png [ 34373 ]
          Attachment xtrigger-ivytrigger.png [ 34374 ]
          Attachment ivytrigger.png [ 34375 ]
          Attachment buildresulttrigger.png [ 34376 ]
          Attachment fstrigger.png [ 34377 ]
          Attachment xtrigger-scripttrigger2.png [ 34378 ]
          Attachment scripttrigger2.png [ 34379 ]
          Attachment xtrigger.png [ 34380 ]
          jamesc0 James Coleman made changes -
          Resolution Done [ 10000 ]
          Status Open [ 1 ] Resolved [ 5 ]

            People

            Assignee:
            batmat Baptiste Mathus
            Reporter:
            jamesco James Coleman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: