This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical
    • Component/s: core
    • Environment:
      jenkins 1.651 to 1.652+ on a windows server 2008

      Tags format/location has changed from the api/xml when doing a POST to

      Two notable changes for me have been the action/parameter has been removed and the action/cause has been renamed

      https://<server>/job/<jobname>/<jobid>/api/xml

      if this was a freeStyleBuild, then the output would contain a

      // for v1.651 and lower

      <freeStyleBuild>
          <action>
              <parameter>
                  <name>some parameter name</name>
                  <value>some parameter values</value>
              </parameter>
          </action>
          <action>
              <cause>
                  <shortDescription>Started by user astro</shortDescription>
                  <userId>astro</userId>
                  <userName>astro</userName>
              </cause>
          </action>
          // more tags
      </freeStyleBuild>
      

      // for 1.652 and above

      <freeStyleBuild>
          <action>
              <name>some parameter name</name>
              <value>some parameter values</value>
          </action>
          <actions>
              <cause>
                  <shortDescription>Started by user astro</shortDescription>
                  <userId>astro</userId>
                  <userName>astro</userName>
              </cause>
          </actions>
          // more tags
      </freeStyleBuild>
      

      In 1.651 and below

      • the parameters are stored under freeStyleBuild/action/parameter
      • the userId is stored under freeStyleBuild/action/cause

      In 1.652 and above

      • the parameters are stored under freeStyleBuild/action
      • the userId is stored under freeStyleBuild/actions/cause

      If people are triggering jobs from an api, and polling the jenkins server to find the results of the triggering jobs, then they will run into this problem (which could be breaking for them).

            Assignee:
            Vivek Pandey
            Reporter:
            Astro Ashtar
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: