[JIRA] (JENKINS-58773) Builds stuck after Querying the current revision of branch

14 views
Skip to first unread message

kuhnroyal@gmail.com (JIRA)

unread,
Aug 1, 2019, 2:32:02 PM8/1/19
to jenkinsc...@googlegroups.com
Peter Leibiger created an issue
 
Jenkins / Bug JENKINS-58773
Builds stuck after Querying the current revision of branch
Issue Type: Bug Bug
Assignee: Parichay Barpanda
Components: gitlab-branch-source-plugin
Created: 2019-08-01 18:31
Environment: Jenkins 2.187 on Mac
Priority: Minor Minor
Reporter: Peter Leibiger

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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kuhnroyal@gmail.com (JIRA)

unread,
Aug 1, 2019, 3:16:02 PM8/1/19
to jenkinsc...@googlegroups.com
Peter Leibiger updated an issue
Change By: Peter Leibiger
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.
{code:java}

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

Stuck here with the little animated circle icon.

EDIT:

After 20min timeout I get a Git exception:
 
{code:java}
[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
{code}

parichay.barpanda@gmail.com (JIRA)

unread,
Aug 1, 2019, 3:25:02 PM8/1/19
to jenkinsc...@googlegroups.com
Parichay Barpanda commented on Bug JENKINS-58773
 
Re: Builds stuck after Querying the current revision of branch

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.

parichay.barpanda@gmail.com (JIRA)

unread,
Aug 1, 2019, 3:26:02 PM8/1/19
to jenkinsc...@googlegroups.com

kuhnroyal@gmail.com (JIRA)

unread,
Aug 2, 2019, 6:17:03 AM8/2/19
to jenkinsc...@googlegroups.com
Change By: Peter Leibiger
Status: Open Fixed but Unreleased
Resolution: Not A Defect

kuhnroyal@gmail.com (JIRA)

unread,
Aug 2, 2019, 6:17:03 AM8/2/19
to jenkinsc...@googlegroups.com
Peter Leibiger commented on Bug JENKINS-58773
 
Re: Builds stuck after Querying the current revision of branch

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.

parichay.barpanda@gmail.com (JIRA)

unread,
Aug 2, 2019, 6:38:02 AM8/2/19
to jenkinsc...@googlegroups.com

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 ).

Reply all
Reply to author
Forward
0 new messages