Closed kdevu closed 5 years ago
Looks like @rawlingsj fixed this with #5791 - yay!
@abayer @rawlingsj
I've tested it with JX version 2.0.861 and it has definitely been fixed.
Unfortunately, I accidentally ran into another bug which has the same symptoms as the above. I ran jx import --no-draft
on a local project that didn't have a repository on Gitlab and two repos (one invalid (no org) and another valid) are added to the Prow configmap config
.
$ kubectl describe configmap config -n jx
...
repos:
- /serviceA
- org/serviceA
target_url: http://deck-jx-DOMAIN
This is how I tested it
git remote remove origin
jx import --no-draft
and let JX create the repositoryconfig
with kubectl describe configmap config -n jx
I imagine the only time a user would run into this issue if they were porting a project over from one git provider over to gitlab and letting JX handle the creation of the repository for them.
@KDvu - mind opening a new issue for this case? I'll try to get it fixed this week. Thanks!
@abayer I created the issue https://github.com/jenkins-x/jx/issues/5806
Thanks!
Summary
Possibly related to https://github.com/jenkins-x/jx/issues/5456, but I didn't notice this issue with
jx import
, I noticed it withjx import --no-draft
.I've notice that when I run
jx import --no-draft
, two repos (instead of one) are added to the Prow ConfigMapconfig
; one invalid (has no org, similar to https://github.com/jenkins-x/jx/issues/5456) and one valid.The impact of this bug is that I'm seeing that although the project is successfully imported to Jenkins X (after
jx import --no-draft
). All changes pushed to themaster
branch do not create any pipelines. Instead, the LightHouse pod logs don't show any pipelines being created and the Tide Pod logs are repeatedly outputting the following.In order to deploy my changes, I'm force to manually start a pipeline by running
jx start pipeline
and selecting the valid repo that was added.I've compared the behaviour between
jx import
andjx import --no-draft
and after testing I've found..Running
kubectl describe configmap config
afterjx import
adds a single valid repo to the Prow configmapconfig
.Running
kubectl describe configmap config
afterjx import --no-draft
adds two repos to the Prow configmapconfig
.This is a snippet of the describe output. A copy of a full output is below under Actual Behaviour.
Steps to reproduce the behavior
1.
jx create quickstart --dry-run --git-provider-url GITLAB_URL
(I first encountered the error with a non-quickstart project, but I've also experience the issue when I was testing with quickstart projects)cd new-quickstart-project
jx import --no-draft
kubectl describe configmap config -n jx
Expected behavior
Only one valid repo should be added to the Prow configmap
config
. Runningjx import --no-draft
and then pushing a change to the master branch should create a pipeline.Actual behavior
Output of step 5 is
These are the logs of the LightHouse pod after running
jx import --no-draft
Jx version
The output of
jx version
is:Jenkins type
Kubernetes cluster
I'm using a GKE cluster. I created it manually using the GCP web GUI.