cloud-native-toolkit / cloud-native-toolkit/planning

igc pipeline - is not working in OCP. It throws “Error registering pipeline” error.

Open
#257 0 comments 0 reactions 0 assignees View on GitHub
bug jenkins
Dominant language
No language data
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When i use, igc pipeline -n dev-gan-2, it was throwing an error “Error registering pipeline: Cannot read property 'jenkinsUrl' of undefined”

After some debugging, I resolved the problem. The main issue was that the git login was pointing to my old user id. I cleared the old user from Keychains and it started working.

The igc cli should have given the right error message, when there is a git login issue.

igc version 0.4.14
npm version 6.14.4
node version v13.12.0

**To Reproduce**
Jeyas-MacBook-Pro:dev-gan-04-test1 jeyagandhi$ igc pipeline -n dev-gan-2
? Select the type of pipeline that should be run? Jenkins
Creating pipeline on openshift cluster
Creating secret(s) with git credentials
Project git repo: https://github.com/GandhiCloudLab/dev-gan-04-test1.git
? Provide the username: gandhicloudlab
? Provide your password/personal access token: [hidden]
? Provide the branch the pipeline should use: master
Registering pipeline: GandhiCloudLab.dev-gan-04-test1
Creating git webhook
Creating webhook to url: undefined/github-webhook/
Error registering pipeline: Cannot read property 'jenkinsUrl' of undefined

**Expected behavior**
The igc cli should have given the right error message, when there is a git login issue.

**Screenshots**

**IBM Cloud**
Select the services and tools affected

- [ ] IBM Kubernetes Service Managed Service
- [ x] Red Hat OpenShift Managed Services
- [ x] Jenkins
- [ ] Tekton
- [ ] SonarQube
- [ ] Pact
- [ ] Artifactory
- [ ] IBM Image Registry

**Desktop (please complete the following information):**
- OS: Mac

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.