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

jobs fail to "parse changelog" for pull requests with "catch-up" merges from destination branch

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      the latest git + git-client combination that worked is:

      plugin version
      git 2.4.1
      git-client 1.19.2

      I have upgraded from the above combination to 2.4.2 + 1.19.6, and then I've started experiencing the following problem for pull requests that had a "catchup" (one or more merges FROM destination branch before the pull request):

      20:22:31 java.io.IOException: Failed to parse changelog
      20:22:31 	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:625)
      20:22:31 	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      20:22:31 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      20:22:31 	at hudson.model.Run.execute(Run.java:1738)
      20:22:31 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      20:22:31 	at hudson.model.ResourceController.execute(ResourceController.java:98)
      20:22:31 	at hudson.model.Executor.run(Executor.java:410)
      20:22:31 Caused by: java.lang.NullPointerException
      20:22:31 	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
      20:22:31 	at com.google.jenkins.plugins.metadata.scm.SourceMetadata.<init>(SourceMetadata.java:62)
      20:22:31 	at com.google.jenkins.plugins.metadata.scm.SourceMetadataExtractor$FromGitBuildActions.getSourceMetadata(SourceMetadataExtractor.java:242)
      20:22:31 	at com.google.jenkins.plugins.metadata.scm.SourceMetadataExtractor$FromBuildActions.extract(SourceMetadataExtractor.java:139)
      20:22:31 	at com.google.jenkins.plugins.metadata.scm.SourceMetadataExtractor.extract(SourceMetadataExtractor.java:101)
      20:22:31 	at com.google.jenkins.plugins.metadata.scm.SourceMetadataBuildListener.onChangeLogParsed(SourceMetadataBuildListener.java:50)
      20:22:31 	at hudson.model.listeners.SCMListener.onChangeLogParsed(SCMListener.java:120)
      20:22:31 	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:623)
      20:22:31 	... 6 more
      

        Attachments

          Issue Links

            Activity

            Hide
            peter_willekens Peter Willekens added a comment -

            Issue started happening to us as well.

            Any idea to which version scm-api should be reverted (currently using 2.1.1) ?

            Show
            peter_willekens Peter Willekens added a comment - Issue started happening to us as well. Any idea to which version scm-api should be reverted (currently using 2.1.1) ?
            Hide
            raphael_unique Raphaël UNIQUE added a comment -

            for us: 2.0.8

            Show
            raphael_unique Raphaël UNIQUE added a comment - for us: 2.0.8
            Hide
            joemar1988 Joe Martinez added a comment -

            We are using 2.0.8 as well.

            We also had to revert: 

            Git Plugin, we are using 3.0.1

            Githug API Plugin, we are using 1.84

            Show
            joemar1988 Joe Martinez added a comment - We are using 2.0.8 as well. We also had to revert:  Git Plugin, we are using 3.0.1 Githug API Plugin, we are using 1.84
            Hide
            peter_willekens Peter Willekens added a comment -

            I just reverted hp-application-automation-tools-plugin (from 5.1 back to 5.0) as I had the same stack trace as Raphael.
            It all seems to work again, so I didn't have to revert the scm-api which is still at 2.1.1
            Lets hope it keeps working ...

            Show
            peter_willekens Peter Willekens added a comment - I just reverted hp-application-automation-tools-plugin (from 5.1 back to 5.0) as I had the same stack trace as Raphael. It all seems to work again, so I didn't have to revert the scm-api which is still at 2.1.1 Lets hope it keeps working ...
            Hide
            yafim_kazak Yafim Kazak added a comment -

            Should be fixed in our latest beta 5.1.0.2 (released to Jenkins experimental update center) and also to HPE Jenkins update center..

            https://hpsa.github.io/JenkinsPluginUpdateCenter/

            Should be included in the formal release of 5.2 in August 2017

            Show
            yafim_kazak Yafim Kazak added a comment - Should be fixed in our latest beta 5.1.0.2 (released to Jenkins experimental update center) and also to HPE Jenkins update center.. https://hpsa.github.io/JenkinsPluginUpdateCenter/ Should be included in the formal release of 5.2 in August 2017

              People

              Assignee:
              yafim_kazak Yafim Kazak
              Reporter:
              mvk Max Kovgan
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: