-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for using gitlab as a git provider. #434
Conversation
/uncc @akihikokuroda |
/uncc @CarolynMabbott |
I have updated versions of buildah pipeline at https://github.com/dibbles/example-pipelines (I will need to deliver these at some point if everything is working) - let me know if you need gitlab pointers. |
I've been testing this on Duane's kindly provided GitLab, so far I've found all is working well on GHE in terms of hooks but the PR has both For GitLab, all was well, I had auto-devops pipelines on. Duane deactivated them, I made a new project and a new PullRequest and now I have no status information for the PullRequest. Will continue further testing with Duane and see where we get. Images so far of progress: |
f6b3682
to
4a2b7e8
Compare
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.
Tested this with @dibbles so only a few minor comments/questions left 😄 works perfectly
/test tekton-experimental-unit-tests |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-roberts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@karimbzu from what I can tell you are not on a level of code that supports gitlab. I cannot see how you get the error you see given your project URL and the current master branch codebase. What/How did you install the webhooks-extension? |
@dibbles Thanks for your response. Here are my steps to install webhook-extensions and tekton-dashboard Tekton Dashboardoc new-project tekton-pipelines || true openshift_master_default_subdomain=$(oc get ingresses.config.openshift.io cluster --output=jsonpath={.spec.domain}) curl -s -L https://github.com/tektoncd/dashboard/releases/download/v0.4.1/openshift-tekton-webhooks-extension-release.yaml | sed "s/{openshift_master_default_subdomain}/${openshift_master_default_subdomain}/" | oc apply -f - Please correct me if i am wrong. Thanks |
@karimbzu I do not believe there has been an official release of the webhooks-extension code with the gitlab support as yet - hopefully it will be either tomorrow or next week some time. Until then you would have to do a development install rather than a release install. |
Ok thank you for your information, I am trying to install the development version and will share it with you. please confirm is this the correct link for development version?: |
[root@bastion webhooks-extension]# oc apply -k overlays/openshift-latest |
Hey @karimbzu, @dibbles is right, I'm expecting to do a webhooks release imminently 😄 Happy to help over Slack (tektoncd.slack.com) for further details, or please raise issues if you think there's a particular problem you're seeing - in your particular case this works for me:
Kustomize is version 3.5.4, ko is version 0.2.0 Directory structure I'm using is as follows
And I've run this well on OCP 4.2 or 4.3. Give this a try 😄 |
Hi, @a-roberts really nice to see your response and solution. i am working with openshift 4.2.16 however, found some issues, can you please suggest some solution. Thanks once again [root@bastion webhooks-extension]# ./kustomize build overlays/openshift-development | ko apply -f - #oc describe tekton-webhooks-extension-validator-6464f884b8-6lm2m Type Reason Age From Message Normal Scheduled 21m default-scheduler Successfully assigned tekton-pipelines/tekton-webhooks-extension-validator-6464f884b8-6lm2m to infra2.ocp.tmrnd.net |
@karimbzu yeah,
is the biggest clue, please take a look through DEVELOPMENT.md, my guess if you haven't done a Essentially that ko step is going to build and push your image to your Dockerhub and replace the image coordinates (so instead of using github.com it'll use your own registry where your newly built image will sit) |
https://github.com/tektoncd/dashboard/releases/tag/v0.5.0 pre-release done, give this a try please and for anything further I've found you on Slack in openshift-pipelines 😄 |
@a-roberts @dibbles really thankful to you for your endless support, effort and time. i resolved all my issues regarding gitlab pipelines. Stay Blessed |
Changes
Adds the ability to use Gitlab as a provider.
Adds the ability to disable certificate verification.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.