https://pulumi.com logo
#gitlab
Title
# gitlab
t

tall-beard-99429

05/07/2021, 5:33 PM
Hi, I'm having problems with the Gitlab CI integration; the CI is running and I can see that it puts the preview in Pulumi, however there is no message sent back after a webhook on the MR itself. How can I go about debugging this? I have tried debugging it in the webhook settings area in Gitlab, but sending a test webhook returns a 401 error.
c

clever-sunset-76585

05/10/2021, 7:03 PM
Hi Alex, I posted this in a different thread to help diagnose a 401 error couple of weeks back. Can you please see if this applies to you? https://pulumi-community.slack.com/archives/C019959SHNJ/p1619724314004300?thread_ts=1619613428.004100&cid=C019959SHNJ
I’ll add a troubleshooting guide to our GitLab CI integration guide. It seems a few people have hit this sort of setup issue.
t

tall-beard-99429

05/11/2021, 7:26 AM
Hi @clever-sunset-76585, It is a project hook that I added and the Pulumi account does have the identity associated with it, however, I did originally have it associated with a different account and had to delete that account to re-link it to this new one, so perhaps something got missed in the relinking?
c

clever-sunset-76585

05/11/2021, 4:18 PM
however, I did originally have it associated with a different account and had to delete that account to re-link it to this new one
That sounds like it could be it. When you say “different account” — do you mean a different Pulumi account or GitLab?
t

tall-beard-99429

05/11/2021, 5:46 PM
A different pulumi account. I had one tied to my work account with my personal username on it, so i changed the usernames around, and then deleted the one with my username on it, so that I could just keep the work one around. The details on my current account (with alex.bowers@jobilla.com) are correct; however that could have caused the problem
Is there anything you can do at your end to verify that or make it so its correct?
Ok, i can see now that I am getting a
401
response back from Pulumi with the content:
Error processing webhook.
please can you confirm that webhooks are working on Pulumi's end?
One thing that might be of note is that we have this repository under a group structure in gitlab (
jobilla/devops/git-managed
) is the repo, and the instructions do say "If your GitLab Project is under a GitLab Group, ensure that the group is added to Pulumi as an organization". We have a
jobilla
organisation, however, do we need to have a
jobilla/devops
organisation? Because i don't seem to be able to create one of them
c

clever-sunset-76585

05/13/2021, 4:55 PM
Hi Alex, apologies for the late reply. As long as your top-level group is added, that should be enough. We don’t support adding GitLab sub-groups to Pulumi. I’ll have a look at the logs for your account…
t

tall-beard-99429

05/13/2021, 5:42 PM
Thank you
3 Views