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

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

XMLWordPrintable

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

      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 =[]
      }}

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

              Created:
              Updated:
              Resolved: