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

Builds array is not created in version 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: git-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      After accidental upgrading to version 4 (rc) our internal scripts stopped working. The script used "/api/python?tree=jobs[name,scm[userRemoteConfigs[url]],builds[changeSet[items[paths[file]]],actions[lastBuiltRevision[SHA1]],result,building,number,duration,estimatedDuration,
      url]]" to get information from Jenkins. The "SHA1" is not available anymore. The "build" is not created and I don't see how I can get the commit ID now.

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            Rollback to git plugin 3.9.* and git client plugin 2.7.*. Refer to the following duplicates and pull requests:

            Show
            markewaite Mark Waite added a comment - Rollback to git plugin 3.9.* and git client plugin 2.7.*. Refer to the following duplicates and pull requests: JENKINS-56010 JENKINS-55939 PR-689 to revert the BuildData change
            Hide
            michaelst Michael S added a comment -

            What I can do for the builds that were built with 4.0.0-rc? How I can put the data back?

            Show
            michaelst Michael S added a comment - What I can do for the builds that were built with 4.0.0-rc? How I can put the data back?
            Hide
            markewaite Mark Waite added a comment -

            There is no way to put the data back for builds that ran with git plugin 4.0.0-rc.

            Show
            markewaite Mark Waite added a comment - There is no way to put the data back for builds that ran with git plugin 4.0.0-rc.
            Hide
            michaelst Michael S added a comment -

            I see. How I can process 4.0.0-rc builds in my script to get the SHA1 of the commit?

            Show
            michaelst Michael S added a comment - I see. How I can process 4.0.0-rc builds in my script to get the SHA1 of the commit?
            Hide
            markewaite Mark Waite added a comment -

            Released in git plugin 4.0.0 Nov 2019

            Show
            markewaite Mark Waite added a comment - Released in git plugin 4.0.0 Nov 2019

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              michaelst Michael S
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: