Closed rudolph9 closed 4 years ago
As a work around (NOTE: I believe the bug still exists as think jx import
created an invalid repository template) I added the kind: SourceRepository
to the repository and it now get's past that error without issue.
orgname/environment-clustername-dev [master] $ cat repositories/templates/orgname-reponame-sr.yaml
apiVersion: jenkins.io/v1
kind: SourceRepository
metadata:
creationTimestamp: null
labels:
owner: orgname
provider: github
repository: reponame
name: orgname-reponame
spec:
description: Imported application for orgname/reponame
httpCloneURL: https://github.com/orgname/reponame.git
org: orgname
provider: https://github.com
providerKind: github
providerName: github
repo: reponame
scheduler:
kind: ""
name: ""
url: https://github.com/orgname/reponame.git
orgname/environment-clustername-dev [master] $ ls -la repositories/templates/orgname-reponame-sr.yaml
-rwxr-xr-x 1 user user 474 Nov 12 07:04 repositories/templates/orgname-reponame-sr.yaml
I believe I fixed this with #6017, which is in jx 2.0.946 and later. Can you update to a newer jx and give it a try?
Yup, it's fixed - reopen if you're still seeing it.
Summary
step-install-repositories
fails while runningorg/environment-clustername-dev/master
pipelineSteps to reproduce the behavior
jenkins-x.yaml
defined and no charts.Import should work but subsequent trigger of
org/environment-name-dev/master
I think fails (I did not capture the error at that time and the logs have now been garbage collected)jx start pipeline org/environment-clustername-dev/master
In an attempt to recapture the error I manually started the pipeline.
Expected behavior
It should run without error.
Actual behavior
Jx version
The output of
jx version
is:Jenkins type
Kubernetes cluster
jx create cluster gke --skip-installation -n clustername --region=us-west1 --max-num-nodes=9 --min-num-nodes=1
Operating system / Environment
Other Notes