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

Jenkins git plugin doesn't seem to populate culprits or changeset

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not A Defect
    • Major
    • git-plugin
    • jenkins 2.426 git-plugin 5.2.0

    Description

      I have a trivial jobs that uses polling for a git repository hosted under gerrit.
      The job status page shows that the job was triggered by an SCM change but 'Changes' are empty.

      I use the script console to look at culprits or changeset and I get an empty list.

      For example:
      {{import hudson.*

      jobName = 'myjob'
      myJob = Jenkins.instance.getItemByFullName(jobName)
      lastBuild = myJob.getBuildByNumber(1)
      cset = lastBuild.getChangeSet()
      println "cset = $cset"
      println "cset.getItems() = ${cset.getItems()}"
      culprits = lastBuild.getCulprits()
      println "culprits =$culprits"
      null

      cset = hudson.plugins.git.GitChangeSetList@7aca95e7
      cset.getItems() = []
      culprits =[]
      }}

      Attachments

        Activity

          People

            Unassigned Unassigned
            em_boehm Eric Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: