groovy does not find hudson.scm.SubversionChangeLogSet.LogEntry

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: groovy-plugin
    • None
    • Environment:
      win64 java8 x64

      I try to execute following script
      import hudson.model.*
      import hudson.util.*
      import hudson.scm.*
      import hudson.scm.SubversionChangeLogSet.LogEntry

      // work with current build
      def build = Thread.currentThread()?.executable

      // for testing, use last build or specific build number
      //def item = hudson.model.Hudson.instance.getItem("Update_SRC_Branch")
      //def build = item.getLastBuild()
      //def build = item.getBuildByNumber(35)

      // get ChangesSets with all changed items
      def changeSet= build.getChangeSet()
      List<LogEntry> items = changeSet.getItems()

      and got error
      startup failed:
      Script1.groovy: 4: unable to resolve class hudson.scm.SubversionChangeLogSet.LogEntry
      @ line 4, column 1.
      import hudson.scm.SubversionChangeLogSet.LogEntry
      ^

            Assignee:
            vjuranek
            Reporter:
            Sergey Solozhentsev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: