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

NoSuchElementException

XMLWordPrintable

      When I try to run my project with the plugin enabled I get this error:

      Started by user joan
      [EnvInject] - Loading node environment variables.
      Building remotely on sonarqube01 (dpkg puppet java7 java8 puppet4 linux) in workspace /home/jenkins/workspace/jcpv2-resources-bgm
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url git@gitlab.xxxxx.ofi:product/jcpv2-resources-bgm.git # timeout=10
      Cleaning workspace
       > git rev-parse --verify HEAD # timeout=10
      Resetting working tree
       > git reset --hard # timeout=10
       > git clean -fdx # timeout=10
      Fetching upstream changes from git@gitlab.xxx.ofi:product/jcpv2-resources-bgm.git
       > git --version # timeout=10
      using GIT_SSH to set credentials jenkins ssh to slaves and git
       > git -c core.askpass=true fetch --tags --progress git@gitlab.xxx.ofi:product/jcpv2-resources-bgm.git +refs/tags/*:refs/tags/*
      Seen branch in repository origin/V8
      Seen branch in repository origin/master
      Seen 2 remote branches
      Checking out Revision aec06608a9427dbb7c643db7368e49260dff5c42 ()
       > git config core.sparsecheckout # timeout=10
       > git checkout -f aec06608a9427dbb7c643db7368e49260dff5c42
      First time build. Skipping changelog.
      FATAL: null
      java.util.NoSuchElementException
      	at java.util.ArrayList$Itr.next(ArrayList.java:834)
      	at org.jenkinsci.plugins.gittagmessage.GitTagMessageExtension.onCheckoutCompleted(GitTagMessageExtension.java:44)
      	at hudson.plugins.git.extensions.GitSCMExtension.onCheckoutCompleted(GitSCMExtension.java:161)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1152)
      	at hudson.scm.SCM.checkout(SCM.java:485)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Archiving artifacts
      Finished: FAILURE
      

      If I ssh to the jenkins slave a go the the project folder to check status:

      > git branch 
      * (no branch)
      

            orrc Christopher Orr
            jfisbein Joan Fisbein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: