title: Error with changeSet in jenkins pipeline (Error:java.io.NotSerializableException: hudson.plugins.git.GitChangeSetList)
body: <p>I have this error: </p>
  
  <pre><code>java.io.NotSerializableException: hudson.plugins.git.GitChangeSetList
  </code></pre>
  
  <p>when <code>ChangeSet!=null</code> but the strange is that the error ocurred when updating this plugin: Pipeline Shared Groovy Libraries, before this work good, i use jenkins v 2.21 and pipeline 2.4 and my code is the next:</p>
  
  <pre><code>def changeLogSets = currentBuild.rawBuild.changeSets
  for (int i = 0; i &lt; changeLogSets.size(); i++) {
     def entries = changeLogSets[i].items
     for (int j = 0; j &lt; entries.length; j++) {
          def entry = entries[j]
          echo "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}"
          def files = new ArrayList(entry.affectedFiles)
          for (int k = 0; k &lt; files.size(); k++) {
              def file = files[k]
              echo "  ${file.editType.name} ${file.path}"
          }
      }
  }
  changeLogSets= null
  </code></pre>