From 4a034500cdc6eb24bc37796b8966ea54038545e2 Mon Sep 17 00:00:00 2001 From: Youssef El Houti Date: Wed, 4 Sep 2024 12:13:40 +0100 Subject: [PATCH] fix: allow default to use github when unable to parse gitUrl --- pkg/cmd/start/start.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/start/start.go b/pkg/cmd/start/start.go index 19b787c..15137ba 100644 --- a/pkg/cmd/start/start.go +++ b/pkg/cmd/start/start.go @@ -403,10 +403,8 @@ func (o *Options) createLighthouseJob(jobName string, cfg *config.Config) error } gitServerURL = gitInfo.HostURL() } else { - gitInfo, err = giturl.ParseGitURL(gitServerURL) - if err != nil { - return fmt.Errorf("failed to parse git server URL %s: %w", gitServerURL, err) - } + // if failed to parse we ignore and try use default values with github... + gitInfo, _ = giturl.ParseGitURL(gitServerURL) } gitKind := sr.Spec.ProviderKind