Skip to content
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 bitbucket and gitlab support #1

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Add bitbucket and gitlab support #1

merged 3 commits into from
Nov 22, 2022

Conversation

vinokurig
Copy link
Collaborator

@vinokurig vinokurig commented Nov 14, 2022

Signed-off-by: Igor Vinokur ivinokur@redhat.com

Add instructions and scripts how to prepare BitBucket, GitLab and GitHub servers to work with Che/DS.

Related issue: eclipse-che/che#21753

Copy link
Collaborator

@svor svor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinokurig It would be nice to have README.md for GitLab as well.
Maybe it'd be useful to have an information about requirements, that describes which tools should be installed in the system to execute these scripts, like oc, kubectl, helm, openssl maybe some other. WDYT?

Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
@vinokurig
Copy link
Collaborator Author

Added a README to the gitlab folder and updated the README in the bitbucket folder.

gitlab/1_deploy_gitlab.sh Outdated Show resolved Hide resolved
@svor
Copy link
Collaborator

svor commented Nov 16, 2022

Lets add license to the files:

#
# Copyright (c) 2022 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

@svor
Copy link
Collaborator

svor commented Nov 16, 2022

Trying to follow bitbucket flow:
After executing 5_link_che_and_bitbucket.sh, I see in the browser next message:

{
  "message": "401\nPOST https://bitbucket-bitbucket.apps.ci-ln-bcstt2b-76ef8.aws-2.ci.openshift.org/plugins/servlet/oauth/request-token\noauth_problem=consumer_key_unknown"
}

screenshot-eclipse-che apps ci-ln-bcstt2b-76ef8 aws-2 ci openshift org-2022 11 16-16_52_45

It's OS 4.10 from the cluster bot. Did I miss something?

Co-authored-by: Valeriy Svydenko <vsvydenk@redhat.com>
@vinokurig
Copy link
Collaborator Author

@svor

Trying to follow bitbucket flow:
After executing 5_link_che_and_bitbucket.sh, I see in the browser next message

Removed the script as redundant since che/devspaces do not use keyclocack any more

@svor
Copy link
Collaborator

svor commented Nov 21, 2022

@vinokurig when executing ./5_test_bitbucket_api.sh
I see an output:

Logged in as  kube:admin
Error from server (NotFound): routes.route.openshift.io "keycloak" not found

The same problem with 6_factory.sh, ./7_test_post_bitbucket_api.sh, ./8_test_delete_bitbucket_api.sh

Co-authored-by: Valeriy Svydenko <vsvydenk@redhat.com>
@vinokurig
Copy link
Collaborator Author

@svor

when executing ./5_test_bitbucket_api.sh

removed redundant scrips

Copy link
Collaborator

@svor svor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Tested GitLab and BitBucket flows

@svor svor merged commit d1298b2 into che-incubator:main Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants