Comments (33)
Can you post any logs from Jenkins?
from gitlab-plugin.
Here are some of the logs I have from the jenkins.log. This is when one of my builds kicked off from a Merge Request and failed. The CI Status in Gitlab never gets updated at all. Let me know if there is anything else I can provide.
Feb 11, 2015 9:58:50 AM com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WARNING: WebHook called.
Feb 11, 2015 9:58:54 AM com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WARNING: WebHook called.
Feb 11, 2015 9:58:56 AM com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WARNING: WebHook called.
Feb 11, 2015 9:59:21 AM com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WARNING: WebHook called.
Feb 11, 2015 9:59:39 AM hudson.model.Run execute
INFO: Venus Git Build #26 main build action completed: FAILURE
Feb 11, 2015 9:59:40 AM org.terracotta.jenkins.plugins.postcompleted.PostCompletedRunListener onCompleted
from gitlab-plugin.
I'm running into the same issue as well:
https://****/project/XXXX/commits/047c93e28773ad2122ff16bd0fae9574ae78995b
Returns nothing
https://****/project/XXXX/builds/047c93e28773ad2122ff16bd0fae9574ae78995b/status.json
Returns:
{ sha: "047c93e28773ad2122ff16bd0fae9574ae78995b", status: "pending" }
Logs from jenkins:
Feb 17, 2015 3:01:24 PM com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic WARNING: WebHook called.
from gitlab-plugin.
@ejhayes and @mildewonrice what version of Gitlab?
from gitlab-plugin.
I'm using GitLab 7.6.2
from gitlab-plugin.
I am running 7.7.2-ee
from gitlab-plugin.
This seems like more of a plugin issue rather than a gitlab issue:
-
The HTTP redirect from the SHA1 to build page never occurs
-
After the fails or completes the status.json file does not update.
from gitlab-plugin.
This same problem. GitLab 7.5.3, Jenkins 1.580.2 using Gitlab-plugin 1.1.15
from gitlab-plugin.
I have the same problem on Gitlab 7.8.4, Jenkins 1.580.3 using Gitlab-plugin 1.1.15
Git Plugin: 2.3.5 Git client plugin: 1.16.1
status.json returns pending for completed builds, and build page is blank
from gitlab-plugin.
Upgrade to version 1.1.17 resolve issue for me.
from gitlab-plugin.
Still a problem for me on 1.1.17
from gitlab-plugin.
1.1.17 fixed this problem for me on Gitlab 7.8.1-ee.
from gitlab-plugin.
@twk3 and @ndcampbell is this for a merge request between forks or between branches of the same repos? Its possible that one works while the other does not.
from gitlab-plugin.
And could be related to #61
from gitlab-plugin.
For between branches of the same repo for me. But the repo itself is a fork.
from gitlab-plugin.
@twk3 can you post the logs while it is requesting the status. There was more logging added in the lastest release.
from gitlab-plugin.
Log level is set at INFO, all I get for a build status call is
Apr 14, 2015 11:10:18 AM WARNING com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WebHook called.
For pushing to to a merge request branch I get:
Apr 14, 2015 11:13:42 AM WARNING com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WebHook called.
Apr 14, 2015 11:13:42 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 run
p4gitlab-test-1 triggered for push.
Apr 14, 2015 11:13:42 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 createActions
GitLab Push Request from branch test-jenkins.
Apr 14, 2015 11:13:42 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 createActions
Trying to get name and URL for job: p4gitlab-test-1 using project p4gitlab-test-1 (push)
Apr 14, 2015 11:13:42 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 run
GitLab Push Request detected in p4gitlab-test-1. Triggering #16
from gitlab-plugin.
Updated to latest plugin, and changed log level to fine. The get Status log didn't change. Doing a push to a merge results in:
Apr 14, 2015 11:25:29 AM WARNING com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WebHook called.
Apr 14, 2015 11:25:29 AM FINE com.dabsquared.gitlabjenkins.GitLabWebHook generateBuild
data: {
"object_kind": "push",
"before": "17c8d6cd54ee7a510aca8f101bf0f8beaeb39ba9",
"after": "2a3c05cad9e3e1db66bc6dc8b4c3c6e5c893e847",
"ref": "refs/heads/test-jenkins",
"checkout_sha": "2a3c05cad9e3e1db66bc6dc8b4c3c6e5c893e847",
"user_id": 19,
"user_name": "[username]",
"user_email": "[email]",
"project_id": 91,
"repository": {
"name": "gitlab-shell",
"url": "[email protected]:username/gitlab-shell.git",
"description": "SSH access and repository management app for GitLab\r\n",
"homepage": "http://gitlab.example.com/username/gitlab-shell",
"git_http_url": "http://gitlab.example.com/username/gitlab-shell.git",
"git_ssh_url": "[email protected]:username/gitlab-shell.git",
"visibility_level": 20
},
"commits": [ {
"id": "2a3c05cad9e3e1db66bc6dc8b4c3c6e5c893e847",
"message": "test\n",
"timestamp": "2015-04-14T11:25:25-07:00",
"url": "http://gitlab.example.com/username/gitlab-shell/commit/2a3c05cad9e3e1db66bc6dc8b4c3c6e5c893e847",
"author": {
"name": "[name]",
"email": "[email]"
}
}],
"total_commits_count": 1
}
Apr 14, 2015 11:25:29 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 run
p4gitlab-test-1 triggered for push.
Apr 14, 2015 11:25:29 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 createActions
GitLab Push Request from branch test-jenkins.
Apr 14, 2015 11:25:29 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 createActions
Trying to get name and URL for job: p4gitlab-test-1 using project p4gitlab-test-1 (push)
Apr 14, 2015 11:25:29 AM INFO com.dabsquared.gitlabjenkins.GitLabPushTrigger$1 run
GitLab Push Request detected in p4gitlab-test-1. Triggering #17
(username and url changed)
from gitlab-plugin.
If you go to the url:
/project/PROJECT_NAME/builds/COMMIT_SHA1/status.json
with your project name in jenkins and "2a3c05cad9e3e1db66bc6dc8b4c3c6e5c893e847" from your log above what do you get
from gitlab-plugin.
On the jenkins box^
from gitlab-plugin.
The log says
Apr 14, 2015 11:37:03 AM WARNING com.dabsquared.gitlabjenkins.GitLabWebHook getDynamic
WebHook called.
and the response is:
{"sha":"2a3c05cad9e3e1db66bc6dc8b4c3c6e5c893e847","status":"pending"}
from gitlab-plugin.
Ok and i would assume the merge request page shows a pending status?
from gitlab-plugin.
Yep, but build is finished, and successful
from gitlab-plugin.
Ok So this function in GitlabWebHook:
is not returning a build from the commit sha1.
from gitlab-plugin.
I'm having the same issue as well.
from gitlab-plugin.
This issue is happening again for me on Gitlab 7.10 for branch merges. I am using the latest version of the plugin. CI status is stuck at pending. It was working for me just fine in Gitlab 7.8
from gitlab-plugin.
@ndcampbell This is broken when using Gitlab 7.10 as Gitlab has changed the CI integration API. See #74 for details.
from gitlab-plugin.
@ndcampbell this should be fixed in the latest release. Can you confirm?
from gitlab-plugin.
@bassrock yeah, I can confirm. Looks to be working great in 7.10 with the latest release.
from gitlab-plugin.
good to hear
from gitlab-plugin.
I still have this issue on the latest plugin and gitlab 7.10.
The older 1.1.3 plugin is still working
I will try and debug at some point, and find why GitlabWebHook doesn't return a build in my case.
from gitlab-plugin.
Only the older version (1.1.3) of this plugin is working with the GitLab 7.2.1.
To build from all branches (including new ones), I am using the polling method triggered by a Web Hook in GitLab, using a URL like this: http://JENKINS_URL/git/notifyCommit?url=URL_GIT_REPOSITORY
With new new plugin version, the status page on Merge Request in GitLab is showing "pending", when I downgraded to 1.1.3, it started to show "passed". Just to reinforce, no other configuration was changed, only did the downgrade of the plugin.
from gitlab-plugin.
I have the same problem for gitlab 7.9.2, jenkins 1.596 and plugin 1.1.25
from gitlab-plugin.
Related Issues (20)
- gitlab status is inconsistent
- create MR while running branch pipe creates mixed status with never ending branch status HOT 1
- GitLab Plugin doesn't allow rebuild on comment.
- Disabling the option "Enable authentication for '/project' end-point" in Jenkins
- webhook return 404
- acceptGitlabMR doesn`t throw exception in case of merge failure HOT 1
- Authentication in Jenkins does not work HOT 2
- updateGitlabCommitStatus is not working with Jenkins Merge Request jobs HOT 2
- The test connection button on Jenkins' configure page throws Client error: CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES HOT 6
- HTTP 403 Forbidden not treated as an error for step: updateGitlabCommitStatus
- Add pull_request_template.md for standardized format to submit changes
- with version 1.8.0 gitlab plugin, no build is queued in jenkins after MR is raised in gitlab HOT 1
- Add git merge request variables to parameter of jenkins build (not only to environment)
- Webhook firing although configuration doesn't match
- Gitlab with context path /gitlab - Commit url - 404 HOT 2
- Error 403 anonymous is missing the Tarea/Build permission on multibranch project when executing webhook push
- Webhook trigger handler does not process new commit trigger on open merge requests: GitLab plugin 1.8.0 HOT 1
- CasC issue with gitLabConnectionConfig : empty connection created
- UpdateGitlabCommitStatus in Jenkins not Displaying Stages in GitLab UI after Upgrading HOT 10
- After starting with hpi:run, you can only interact with localhost HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-plugin.