-
Bug
-
Resolution: Done
-
Major
-
Pipelines 1.8.1
-
None
-
3
-
False
-
None
-
False
-
-
Pipelines Sprint 227, Pipelines Sprint 228, Pipelines Sprint 229, Pipelines Sprint 230
Expected behavior
"tkn pac setup gitlab-webhook" asks for GitLab project ID and uses that git repo in Repository CR.
Actual behavior
When I run "tkn pac setup gitlab-webhook" from a directory with a cloned git repository, this repository will be used instead of the one provided in setup flow.
Steps to reproduce
1. git clone https://github.com/ppitonak/nocode
2. cd nocode
3. tkn pac setup gitlab-webhook
? Please enter the project ID for the repository you want to be configured : 66442 ? Do you want me to use it? Yes ? Please enter the secret to configure the webhook for payload validation: **** ℹ ️You now need to create a GitLab personal access token with `api` scope ℹ ️Go to this URL to generate one https://gitlab.com/-/profile/personal_access_tokens, see https://is.gd/rOEo9B for documentation ? Please enter the GitLab access token: ******************** ? Please enter your GitLab API URL:: https://gitlab.cee.redhat.com/ ✓ Webhook has been created on your repository ? Would you like me to create the Repository CR for your git repository? Yes ? Please enter the namespace where the pipeline should run (default: test): ✓ Repository ppitonak-chains-tests has been created in test namespace 🔑 Webhook Secret ppitonak-chains-tests has been created in the test namespace. 🔑 Repository CR ppitonak-chains-tests has been updated with webhook secret in the test namespace
Then check the repository CR - contains completely unrelated GitHub repository instead of the one from internal GitLab
$ oc get repository
NAME URL SUCCEEDED REASON STARTTIME COMPLETIONTIME
ppitonak-nocode https://github.com/ppitonak/nocode
- is related to
-
SRVKP-2421 Align UX for create repo CLI commands
- Dev Complete
-
RHDEVDOCS-4711 PAC: Align UX for create repo CLI commands
- Closed