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

Builds stuck after Querying the current revision of branch

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I installed the latest version of the plugin as HPI and configured my Gitlab Server.

      I managed to create a Gitlab Group and the plugin found my example branch with a Jenkinsfile.

      After starting a build on the branch, it is stuck forever after Querying the current revision of branch. Same happens when I create this as single Multibranch Project.

      Gestartet durch Benutzer Test
      Querying the current revision of branch feature/FOO...
      Current revision of branch feature/FOO is 80b4ef81acc9c9e14b42e80e8bf74cd7fd5d5bb9
      

      Stuck here with the little animated circle icon.

      EDIT:

      After 20min timeout I get a Git exception: 

      [GitLab Pipeline Status] Notifying branch build status: FAILED Test/FOO: There was a failure building this commit
      [GitLab Pipeline Status] Notified
      hudson.plugins.git.GitException: Command "git fetch --tags --force --progress origin +refs/heads/*:refs/remotes/origin/* --prune" returned status code 143:
      stdout: 
      stderr: 
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:406)
      	at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:293)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:103)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

        Attachments

          Activity

          Hide
          baymac Parichay Barpanda added a comment -

          Hi Peter, thanks for installing the plugin. I am not sure if it is a problem with the plugin because our tests has been successful. My initial guess is you are using a declarative syntax in your Jenkinsfile and you do not have Pipeline:declarative installed in your Jenkins instance. Can you try using a scripted pipeline and perform the build. Also want you to try this hpi: https://ci.jenkins.io/job/Plugins/job/gitlab-branch-source-plugin/job/hotfix%252Fwebhook-2.0/lastSuccessfulBuild/artifact/io/jenkins/plugins/gitlab-branch-source/0.0.6-rc367.c03b88a61fc1/gitlab-branch-source-0.0.6-rc367.c03b88a61fc1.hpi

          Please let me know if this doesn't fix your issue.

          Show
          baymac Parichay Barpanda added a comment - Hi Peter, thanks for installing the plugin. I am not sure if it is a problem with the plugin because our tests has been successful. My initial guess is you are using a declarative syntax in your Jenkinsfile and you do not have Pipeline:declarative installed in your Jenkins instance. Can you try using a scripted pipeline and perform the build. Also want you to try this hpi: https://ci.jenkins.io/job/Plugins/job/gitlab-branch-source-plugin/job/hotfix%252Fwebhook-2.0/lastSuccessfulBuild/artifact/io/jenkins/plugins/gitlab-branch-source/0.0.6-rc367.c03b88a61fc1/gitlab-branch-source-0.0.6-rc367.c03b88a61fc1.hpi Please let me know if this doesn't fix your issue.
          Hide
          baymac Parichay Barpanda added a comment -

          What is your GitLab Server version?

          Show
          baymac Parichay Barpanda added a comment - What is your GitLab Server version?
          Hide
          pleibiger Peter Leibiger added a comment -

          This was probably cause by some permission problem on the mac: https://stackoverflow.com/questions/41592836/error-error-fetching-remote-repo-origin-returned-status-code-143 - Solved it by installing Jenkins via brew.

           

          Thanks Parichay Barpanda, I updated the plugin and it seems to work.
          Gitlab is 11.10.8

           

          Unrelated to this, do you have an example on how to configure a group job for Gitlab with JCasC? I didn't manage to adapt a github/Bitbucket example.

          Show
          pleibiger Peter Leibiger added a comment - This was probably cause by some permission problem on the mac:  https://stackoverflow.com/questions/41592836/error-error-fetching-remote-repo-origin-returned-status-code-143  - Solved it by installing Jenkins via brew.   Thanks Parichay Barpanda , I updated the plugin and it seems to work. Gitlab is 11.10.8   Unrelated to this, do you have an example on how to configure a group job for Gitlab with JCasC? I didn't manage to adapt a github/Bitbucket example.
          Hide
          baymac Parichay Barpanda added a comment -

          Hi Peter, glad it worked for you. Btw your GitLab Server version is fine, I expect it to have full compatibility with our plugin.

          I have limited knowledge in the area of configuring jobs. I am discussing with jcasc maintainers about this and will try to add them to the docs. Will let you know when done.

          Please feel free to let me know if anytime there is a bug/feature request (not already known ).

          Show
          baymac Parichay Barpanda added a comment - Hi Peter, glad it worked for you. Btw your GitLab Server version is fine, I expect it to have full compatibility with our plugin. I have limited knowledge in the area of configuring jobs. I am discussing with jcasc maintainers about this and will try to add them to the docs. Will let you know when done. Please feel free to let me know if anytime there is a bug/feature request (not already known ).

            People

            Assignee:
            baymac Parichay Barpanda
            Reporter:
            pleibiger Peter Leibiger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: