-
Notifications
You must be signed in to change notification settings - Fork 43
update to v4 of gitlab api #80
base: master
Are you sure you want to change the base?
Conversation
…utside of gitlab-plugin as it is wrong there. Also add support for reopen action to do same as Open.
I have this stackstrace if I launch a scan of my gitlab projects :
|
@jbomaileva we have the same issue. |
Any updates or progress on this? How could one help move this along? I believe this could resolve #83. |
GitLab v11 removed the v3 API. I tried your PR, seems to be working only when i remove my old project (old settings on version 0.6.x of this plugin) Saving configuration triggers system webhook register which results in 403 forbidden responses |
@@ -14,11 +14,11 @@ | |||
public static final String REVISION_HEAD = "HEAD"; | |||
|
|||
public static GitLabSCMBranchHead createBranch(int projectId, String name, String hash) { | |||
return createBranch(projectId, name, hash, false); | |||
return createBranch(projectId, name+"t2", hash, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes problems if you change the name ...
Okay found all problems and it's working now.
Last problem is registering System WebHook in GitlabAPI. Method
|
Hey @awilhelmer, Thanks for looking into this! When you said, "Okay found all problems and it's working now." Were you referring to this pull request? Also, when you said, "Last problem is registering System WebHook in GitlabAPI." Is that a new issue or did you resolve it? Sorry for the confusion. Cheers, |
Hi @alexkoepke |
So, the plugin is not fully compatible with gitlab 11 yet ? |
It works. The System Webhook is to detect new or deleted branches. The Push webhook for projects works fine. |
can you share your commits? |
# Conflicts: # pom.xml # src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/SourceHeads.java # src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/actions/GitLabSCMPublishAction.java # src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/hooks/HookHandler.java
I resolved the issues noted in code that were part of my code for testing and also merged in the latest changed from master on here. Additionally I began work on getting the note event trigger which is successfully working for merge requests but I cannot get it to trigger a job because it determines that the source code has not chnaged and will not trigger a build. I would appreciate some help on this. |
Thanks for working on this, @ilushka85! Commenting out the note event stuff, I was able to build this (findbugs complained about the unused assignment) and get it working again after a Gitlab upgrade |
@paulerickson do you think your fixes will get this PR to a passing state? @Argelbargel are you able to confirm? |
@alexkoepke okay, I opened #91 with Ilya's changes minus Notes, although I have not tested just yet. It would be great if someone else could test it too. Push events still don't trigger for me, which I think is existing since 0.6.6.7 |
I think this can be closed, since the v4 changes were incorporated in #91 |
@paulerickson fantastic! Good to hear, I’ll test when I get the chance. |
No description provided.