From 7af5de51c314b182767e036a7749f72dc3a24b1a Mon Sep 17 00:00:00 2001 From: Michael Sauter Date: Fri, 21 Jul 2023 09:26:31 +0200 Subject: [PATCH] Fix Go module name For some reason the Go module was 'github.com/opendevstack/pipeline' while the repository is named 'github.com/opendevstack/ods-pipeline'. This means that importing packages from this module was not possible before. While this isn't a typical thing to do now, it will be once we move the tasks out to their own repositories. I have a PoC of this locally which requires the change here ... --- CHANGELOG.md | 1 + cmd/aqua-scan/aqua.go | 6 +++--- cmd/aqua-scan/bitbucket.go | 6 +++--- cmd/aqua-scan/main.go | 4 ++-- cmd/aqua-scan/steps.go | 4 ++-- cmd/artifact-download/artifact_download.go | 8 ++++---- .../artifact_download_test.go | 8 ++++---- cmd/artifact-download/main.go | 6 +++--- cmd/deploy-helm/helm.go | 2 +- cmd/deploy-helm/main.go | 4 ++-- cmd/deploy-helm/skopeo.go | 4 ++-- cmd/deploy-helm/steps.go | 12 ++++++------ cmd/deploy-helm/steps_test.go | 2 +- cmd/docs/main.go | 4 ++-- cmd/finish/main.go | 18 +++++++++--------- cmd/finish/main_test.go | 8 ++++---- cmd/package-image/buildah.go | 2 +- cmd/package-image/main.go | 8 ++++---- cmd/package-image/skopeo_tag.go | 4 ++-- cmd/package-image/steps.go | 6 +++--- cmd/package-image/trivy.go | 4 ++-- cmd/pipeline-manager/main.go | 10 +++++----- cmd/sonar/main.go | 6 +++--- cmd/sonar/main_test.go | 6 +++--- cmd/start/git.go | 4 ++-- cmd/start/main.go | 12 ++++++------ cmd/tasks/main.go | 4 ++-- docs/authoring-tasks.adoc | 2 +- docs/development.adoc | 6 +++--- go.mod | 2 +- internal/docs/tasks.go | 2 +- internal/image/identity.go | 4 ++-- internal/installation/bitbucket.go | 4 ++-- internal/installation/nexus.go | 4 ++-- internal/kubernetes/client.go | 2 +- internal/manager/bitbucket.go | 2 +- internal/manager/bitbucket_test.go | 2 +- internal/manager/pipeline.go | 4 ++-- internal/manager/pipeline_test.go | 4 ++-- internal/manager/prune.go | 4 ++-- internal/manager/prune_test.go | 4 ++-- internal/manager/pvc_test.go | 4 ++-- internal/manager/receive.go | 8 ++++---- internal/manager/receive_test.go | 8 ++++---- internal/manager/schedule.go | 6 +++--- internal/manager/schedule_test.go | 6 +++--- internal/manager/server.go | 2 +- internal/manager/watch.go | 4 ++-- internal/manager/watch_test.go | 4 ++-- internal/notification/client.go | 4 ++-- internal/notification/client_test.go | 4 ++-- internal/notification/config.go | 2 +- internal/notification/config_test.go | 4 ++-- internal/tasks/tasks.go | 2 +- internal/tekton/client.go | 2 +- internal/testfile/testdata.go | 2 +- pkg/bitbucket/branches_test.go | 2 +- pkg/bitbucket/build_status_test.go | 2 +- pkg/bitbucket/client.go | 2 +- pkg/bitbucket/code_insights_test.go | 4 ++-- pkg/bitbucket/commits_test.go | 2 +- pkg/bitbucket/projects_test.go | 2 +- pkg/bitbucket/raw_test.go | 2 +- pkg/bitbucket/repos_test.go | 2 +- pkg/bitbucket/tags_test.go | 2 +- pkg/bitbucket/webhooks_test.go | 2 +- pkg/config/ods_test.go | 2 +- pkg/nexus/client.go | 2 +- pkg/nexus/download_test.go | 4 ++-- pkg/pipelinectxt/artifacts.go | 6 +++--- pkg/pipelinectxt/artifacts_test.go | 4 ++-- pkg/pipelinectxt/context_test.go | 2 +- pkg/sonar/client.go | 4 ++-- pkg/sonar/compute_engine_test.go | 2 +- pkg/sonar/quality_gate_test.go | 2 +- pkg/sonar/report.go | 6 +++--- pkg/sonar/scan.go | 2 +- pkg/sonar/scan_test.go | 2 +- pkg/tasktesting/bitbucket.go | 8 ++++---- pkg/tasktesting/check.go | 2 +- pkg/tasktesting/git.go | 10 +++++----- pkg/tasktesting/helper.go | 8 ++++---- pkg/tasktesting/nexus.go | 8 ++++---- pkg/tasktesting/run.go | 8 ++++---- pkg/tasktesting/taskrun.go | 2 +- test/e2e/e2e_test.go | 8 ++++---- test/scripts/download-aqua-scanner_test.go | 2 +- test/tasks/common_test.go | 16 ++++++++-------- test/tasks/ods-aqua-scan_test.go | 2 +- test/tasks/ods-build-go_test.go | 8 ++++---- test/tasks/ods-build-gradle_test.go | 4 ++-- test/tasks/ods-build-npm_test.go | 6 +++--- test/tasks/ods-build-python_test.go | 6 +++--- test/tasks/ods-deploy-helm_external_test.go | 16 ++++++++-------- test/tasks/ods-deploy-helm_test.go | 14 +++++++------- test/tasks/ods-finish_test.go | 8 ++++---- test/tasks/ods-package-image_test.go | 12 ++++++------ test/tasks/ods-start_test.go | 14 +++++++------- test/testserver/testserver.go | 4 ++-- 99 files changed, 249 insertions(+), 248 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b307fb9e..de79ebf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ listed in the changelog. ### Fixed - ods.yaml branch trigger patterns must be lowercase ([#713](https://github.com/opendevstack/ods-pipeline/issues/713)) +- Go module name was incorrectly set to `github.com/opendevstack/pipeline` ## [0.13.2] - 2023-07-18 diff --git a/cmd/aqua-scan/aqua.go b/cmd/aqua-scan/aqua.go index 69e5a66e..534313b8 100644 --- a/cmd/aqua-scan/aqua.go +++ b/cmd/aqua-scan/aqua.go @@ -7,9 +7,9 @@ import ( "os" "path/filepath" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/image" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/image" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) const ( diff --git a/cmd/aqua-scan/bitbucket.go b/cmd/aqua-scan/bitbucket.go index 681e8fdd..f918a52d 100644 --- a/cmd/aqua-scan/bitbucket.go +++ b/cmd/aqua-scan/bitbucket.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) // createBitbucketInsightReport attaches a code insight report to the Git commit diff --git a/cmd/aqua-scan/main.go b/cmd/aqua-scan/main.go index 6a795fe9..4997094d 100644 --- a/cmd/aqua-scan/main.go +++ b/cmd/aqua-scan/main.go @@ -4,8 +4,8 @@ import ( "flag" "os" - "github.com/opendevstack/pipeline/internal/image" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/image" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" "golang.org/x/exp/slog" ) diff --git a/cmd/aqua-scan/steps.go b/cmd/aqua-scan/steps.go index f4bce7fc..e72d71dd 100644 --- a/cmd/aqua-scan/steps.go +++ b/cmd/aqua-scan/steps.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/opendevstack/pipeline/internal/image" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/image" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" "golang.org/x/exp/slog" ) diff --git a/cmd/artifact-download/artifact_download.go b/cmd/artifact-download/artifact_download.go index 45431897..b7575a9c 100644 --- a/cmd/artifact-download/artifact_download.go +++ b/cmd/artifact-download/artifact_download.go @@ -6,10 +6,10 @@ import ( "os" "path/filepath" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" "sigs.k8s.io/yaml" ) diff --git a/cmd/artifact-download/artifact_download_test.go b/cmd/artifact-download/artifact_download_test.go index d22cbf1a..c11b3fff 100644 --- a/cmd/artifact-download/artifact_download_test.go +++ b/cmd/artifact-download/artifact_download_test.go @@ -7,10 +7,10 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/internal/gittest" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/gittest" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) func TestGetODSContextFromDir(t *testing.T) { diff --git a/cmd/artifact-download/main.go b/cmd/artifact-download/main.go index fb2b0fc9..d9478369 100644 --- a/cmd/artifact-download/main.go +++ b/cmd/artifact-download/main.go @@ -17,9 +17,9 @@ import ( "os" "path/filepath" - "github.com/opendevstack/pipeline/internal/installation" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/internal/installation" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" ) diff --git a/cmd/deploy-helm/helm.go b/cmd/deploy-helm/helm.go index f5f87538..adc94a6e 100644 --- a/cmd/deploy-helm/helm.go +++ b/cmd/deploy-helm/helm.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/google/shlex" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" "sigs.k8s.io/yaml" ) diff --git a/cmd/deploy-helm/main.go b/cmd/deploy-helm/main.go index 4f0a4ef0..48b2c5f4 100644 --- a/cmd/deploy-helm/main.go +++ b/cmd/deploy-helm/main.go @@ -5,8 +5,8 @@ import ( "io/fs" "os" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" "k8s.io/client-go/kubernetes" ) diff --git a/cmd/deploy-helm/skopeo.go b/cmd/deploy-helm/skopeo.go index e90270eb..67becd69 100644 --- a/cmd/deploy-helm/skopeo.go +++ b/cmd/deploy-helm/skopeo.go @@ -5,8 +5,8 @@ import ( "io" "strings" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/pkg/artifact" ) func (d *deployHelm) copyImage(imageArtifact artifact.Image, destRegistryToken string, outWriter, errWriter io.Writer) error { diff --git a/cmd/deploy-helm/steps.go b/cmd/deploy-helm/steps.go index 9b03a7fc..da4aa674 100644 --- a/cmd/deploy-helm/steps.go +++ b/cmd/deploy-helm/steps.go @@ -12,12 +12,12 @@ import ( "regexp" "strings" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/directory" - "github.com/opendevstack/pipeline/internal/file" - k "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/directory" + "github.com/opendevstack/ods-pipeline/internal/file" + k "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" ) diff --git a/cmd/deploy-helm/steps_test.go b/cmd/deploy-helm/steps_test.go index 2e8d032b..430fbfe5 100644 --- a/cmd/deploy-helm/steps_test.go +++ b/cmd/deploy-helm/steps_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/opendevstack/pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/artifact" ) func TestArtifactFilename(t *testing.T) { diff --git a/cmd/docs/main.go b/cmd/docs/main.go index 75f79da6..20d17847 100644 --- a/cmd/docs/main.go +++ b/cmd/docs/main.go @@ -4,8 +4,8 @@ import ( "log" "path/filepath" - "github.com/opendevstack/pipeline/internal/docs" - "github.com/opendevstack/pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/docs" + "github.com/opendevstack/ods-pipeline/internal/projectpath" ) func main() { diff --git a/cmd/finish/main.go b/cmd/finish/main.go index 0037b74a..5a1d7e41 100644 --- a/cmd/finish/main.go +++ b/cmd/finish/main.go @@ -8,15 +8,15 @@ import ( "os" "path/filepath" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/notification" - "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/notification" + "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) type options struct { diff --git a/cmd/finish/main_test.go b/cmd/finish/main_test.go index 94a42e00..2f9fa30f 100644 --- a/cmd/finish/main_test.go +++ b/cmd/finish/main_test.go @@ -6,10 +6,10 @@ import ( "path/filepath" "testing" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) func TestUploadArtifacts(t *testing.T) { diff --git a/cmd/package-image/buildah.go b/cmd/package-image/buildah.go index 9a9cff72..a74cb1bd 100644 --- a/cmd/package-image/buildah.go +++ b/cmd/package-image/buildah.go @@ -10,7 +10,7 @@ import ( "strings" "github.com/google/shlex" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" ) const ( diff --git a/cmd/package-image/main.go b/cmd/package-image/main.go index 9bcf99ec..caf3e49a 100644 --- a/cmd/package-image/main.go +++ b/cmd/package-image/main.go @@ -7,10 +7,10 @@ import ( "path/filepath" "strings" - "github.com/opendevstack/pipeline/internal/image" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/image" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) const ( diff --git a/cmd/package-image/skopeo_tag.go b/cmd/package-image/skopeo_tag.go index 91ce02d4..2e44fea3 100644 --- a/cmd/package-image/skopeo_tag.go +++ b/cmd/package-image/skopeo_tag.go @@ -5,8 +5,8 @@ import ( "io" "strings" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/image" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/image" ) func (p *packageImage) skopeoTag(idt *image.IdentityWithTag, outWriter, errWriter io.Writer) error { diff --git a/cmd/package-image/steps.go b/cmd/package-image/steps.go index fd42088b..e85309c9 100644 --- a/cmd/package-image/steps.go +++ b/cmd/package-image/steps.go @@ -8,9 +8,9 @@ import ( "strings" "github.com/google/shlex" - "github.com/opendevstack/pipeline/internal/directory" - "github.com/opendevstack/pipeline/internal/image" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/directory" + "github.com/opendevstack/ods-pipeline/internal/image" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) type PackageStep func(d *packageImage) (*packageImage, error) diff --git a/cmd/package-image/trivy.go b/cmd/package-image/trivy.go index c43cb19b..5a0a24dd 100644 --- a/cmd/package-image/trivy.go +++ b/cmd/package-image/trivy.go @@ -6,8 +6,8 @@ import ( "path/filepath" "github.com/google/shlex" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) const ( diff --git a/cmd/pipeline-manager/main.go b/cmd/pipeline-manager/main.go index 3f3c525e..92949082 100644 --- a/cmd/pipeline-manager/main.go +++ b/cmd/pipeline-manager/main.go @@ -11,11 +11,11 @@ import ( "strings" "time" - kubernetesClient "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/manager" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/logging" + kubernetesClient "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/manager" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" ) diff --git a/cmd/sonar/main.go b/cmd/sonar/main.go index 03052b35..8d097582 100644 --- a/cmd/sonar/main.go +++ b/cmd/sonar/main.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/sonar" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/sonar" ) type options struct { diff --git a/cmd/sonar/main_test.go b/cmd/sonar/main_test.go index abac4fb9..e9ad9d56 100644 --- a/cmd/sonar/main_test.go +++ b/cmd/sonar/main_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/sonar" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/sonar" ) type fakeClient struct { diff --git a/cmd/start/git.go b/cmd/start/git.go index d52c49fd..51f7ce4c 100644 --- a/cmd/start/git.go +++ b/cmd/start/git.go @@ -7,8 +7,8 @@ import ( "path/filepath" "strings" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/pkg/logging" ) // gitCheckoutParams holds the parameters configuring the checkout. diff --git a/cmd/start/main.go b/cmd/start/main.go index ff113bd2..b86ce1fb 100644 --- a/cmd/start/main.go +++ b/cmd/start/main.go @@ -8,12 +8,12 @@ import ( "path/filepath" "strings" - "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) type options struct { diff --git a/cmd/tasks/main.go b/cmd/tasks/main.go index 38a19868..f974f692 100644 --- a/cmd/tasks/main.go +++ b/cmd/tasks/main.go @@ -4,8 +4,8 @@ import ( "log" "path/filepath" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/internal/tasks" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/tasks" ) func main() { diff --git a/docs/authoring-tasks.adoc b/docs/authoring-tasks.adoc index df6019f7..0ad602a0 100644 --- a/docs/authoring-tasks.adoc +++ b/docs/authoring-tasks.adoc @@ -79,7 +79,7 @@ Of course this doesn't do anything useful in the CI pipeline. Typically, you'd n === Using pipeline context -The pipeline generated by ODS is automatically fed with a few parameters which can be passed to each task. However, that would lead to a lot of boilerplate in `ods.yaml` as many parameters would need to be passed over and over again to each task. To avoid this, the parameters are cached by the `ods-start` task in the workspace in a `.ods` directory. For example, the `repository` parameter value is written to a file `.ods/repository`. This file and other similar files are forming the "pipeline context", which can be read by task authors to access this type of information easily. If you are writing your task logic in Go, you can conveniently read this cache into an `ODSContext` struct using `ReadCache` from the `github.com/opendevstack/pipeline/pkg/pipelinectxt` package. +The pipeline generated by ODS is automatically fed with a few parameters which can be passed to each task. However, that would lead to a lot of boilerplate in `ods.yaml` as many parameters would need to be passed over and over again to each task. To avoid this, the parameters are cached by the `ods-start` task in the workspace in a `.ods` directory. For example, the `repository` parameter value is written to a file `.ods/repository`. This file and other similar files are forming the "pipeline context", which can be read by task authors to access this type of information easily. If you are writing your task logic in Go, you can conveniently read this cache into an `ODSContext` struct using `ReadCache` from the `github.com/opendevstack/ods-pipeline/pkg/pipelinectxt` package. === Handling artifacts diff --git a/docs/development.adoc b/docs/development.adoc index a7bcda13..40bd8db6 100644 --- a/docs/development.adoc +++ b/docs/development.adoc @@ -32,12 +32,12 @@ As mentioned above, `make test` will run all tests. You may also run only a subs Individual task test can be executed like this: ``` -go test -run ^TestTaskODSBuildImage github.com/opendevstack/pipeline/test/tasks -v -count=1 +go test -run ^TestTaskODSBuildImage github.com/opendevstack/ods-pipeline/test/tasks -v -count=1 ``` Further, if you only want to run one test case from the map of test cases, this can be done like this: ``` -go test -run ^TestTaskODSBuildNPM/build_backend_javascript_app$ github.com/opendevstack/pipeline/test/tasks -v -count=1 +go test -run ^TestTaskODSBuildNPM/build_backend_javascript_app$ github.com/opendevstack/ods-pipeline/test/tasks -v -count=1 ``` Be aware that depending on the tested task, some local services (e.g. Bitbucket) need to run for the test to succeed. These are all started via `make prepare-local-env`, but more fine-grained control is possible too. @@ -73,7 +73,7 @@ If you place this file in the root of the `ods-pipeline` repository, it will aut Finally, you need to run the tests, passing the configuration created earlier and the token of a serviceaccount with enough permissions in the target namespace: ``` -go test --tags=external -run ^TestTaskODSDeployHelmExternal$ github.com/opendevstack/pipeline/test/tasks -count=1 -v -external-cluster-token=*** -external-cluster-config=ods.external.yaml +go test --tags=external -run ^TestTaskODSDeployHelmExternal$ github.com/opendevstack/ods-pipeline/test/tasks -count=1 -v -external-cluster-token=*** -external-cluster-config=ods.external.yaml ``` The above command runs only the external deployment test, but you may also remove this limitation (by removing `-run ^TestTaskODSDeployHelmExternal$`) and run the whole test suite including the external deployment test. diff --git a/go.mod b/go.mod index ee27c4d2..db782c80 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/opendevstack/pipeline +module github.com/opendevstack/ods-pipeline go 1.19 diff --git a/internal/docs/tasks.go b/internal/docs/tasks.go index 525cf579..9189b480 100644 --- a/internal/docs/tasks.go +++ b/internal/docs/tasks.go @@ -9,7 +9,7 @@ import ( "strings" "text/template" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" "sigs.k8s.io/yaml" ) diff --git a/internal/image/identity.go b/internal/image/identity.go index cca86f65..248473f7 100644 --- a/internal/image/identity.go +++ b/internal/image/identity.go @@ -3,8 +3,8 @@ package image import ( "fmt" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) // registry/imageNamespace/imageStream: diff --git a/internal/installation/bitbucket.go b/internal/installation/bitbucket.go index 43ddca58..07ffe203 100644 --- a/internal/installation/bitbucket.go +++ b/internal/installation/bitbucket.go @@ -8,8 +8,8 @@ import ( "net/http" "os" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/logging" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kclient "k8s.io/client-go/kubernetes" ) diff --git a/internal/installation/nexus.go b/internal/installation/nexus.go index 7f7c952d..3da24178 100644 --- a/internal/installation/nexus.go +++ b/internal/installation/nexus.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kclient "k8s.io/client-go/kubernetes" ) diff --git a/internal/kubernetes/client.go b/internal/kubernetes/client.go index e94280f2..0319c0e8 100644 --- a/internal/kubernetes/client.go +++ b/internal/kubernetes/client.go @@ -4,7 +4,7 @@ import ( "errors" "path/filepath" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/client/clientset/versioned" "k8s.io/client-go/kubernetes" clientCoreV1 "k8s.io/client-go/kubernetes/typed/core/v1" diff --git a/internal/manager/bitbucket.go b/internal/manager/bitbucket.go index 7ffb49fc..afcfe458 100644 --- a/internal/manager/bitbucket.go +++ b/internal/manager/bitbucket.go @@ -3,7 +3,7 @@ package manager import ( "fmt" - "github.com/opendevstack/pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" ) type bitbucketInterface interface { diff --git a/internal/manager/bitbucket_test.go b/internal/manager/bitbucket_test.go index 53e6a9af..39139bbe 100644 --- a/internal/manager/bitbucket_test.go +++ b/internal/manager/bitbucket_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" ) func TestGetRepoNames(t *testing.T) { diff --git a/internal/manager/pipeline.go b/internal/manager/pipeline.go index 7e034155..37f2f595 100644 --- a/internal/manager/pipeline.go +++ b/internal/manager/pipeline.go @@ -9,8 +9,8 @@ import ( "strconv" "strings" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/config" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/config" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/manager/pipeline_test.go b/internal/manager/pipeline_test.go index e5431e02..b34e515c 100644 --- a/internal/manager/pipeline_test.go +++ b/internal/manager/pipeline_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/config" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/config" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" ) diff --git a/internal/manager/prune.go b/internal/manager/prune.go index 82847d61..3d238f03 100644 --- a/internal/manager/prune.go +++ b/internal/manager/prune.go @@ -4,8 +4,8 @@ import ( "context" "time" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/logging" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/manager/prune_test.go b/internal/manager/prune_test.go index b141dfa8..b4558271 100644 --- a/internal/manager/prune_test.go +++ b/internal/manager/prune_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/google/go-cmp/cmp" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/logging" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/manager/pvc_test.go b/internal/manager/pvc_test.go index d476110c..a2ed789a 100644 --- a/internal/manager/pvc_test.go +++ b/internal/manager/pvc_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - kubernetesClient "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/pkg/logging" + kubernetesClient "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/pkg/logging" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/manager/receive.go b/internal/manager/receive.go index 599fa7c0..287af286 100644 --- a/internal/manager/receive.go +++ b/internal/manager/receive.go @@ -9,10 +9,10 @@ import ( "regexp" "strings" - "github.com/opendevstack/pipeline/internal/httpjson" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/internal/httpjson" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/logging" ) const changeRefTypeTag = "TAG" diff --git a/internal/manager/receive_test.go b/internal/manager/receive_test.go index 60f3ae66..b2e9802f 100644 --- a/internal/manager/receive_test.go +++ b/internal/manager/receive_test.go @@ -18,10 +18,10 @@ import ( "unicode" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/logging" "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" ) diff --git a/internal/manager/schedule.go b/internal/manager/schedule.go index d1741af6..e8c8fc6f 100644 --- a/internal/manager/schedule.go +++ b/internal/manager/schedule.go @@ -4,9 +4,9 @@ import ( "context" "time" - kubernetesClient "github.com/opendevstack/pipeline/internal/kubernetes" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/logging" + kubernetesClient "github.com/opendevstack/ods-pipeline/internal/kubernetes" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" ) diff --git a/internal/manager/schedule_test.go b/internal/manager/schedule_test.go index bdd039e1..37376e4a 100644 --- a/internal/manager/schedule_test.go +++ b/internal/manager/schedule_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - kubernetesClient "github.com/opendevstack/pipeline/internal/kubernetes" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/logging" + kubernetesClient "github.com/opendevstack/ods-pipeline/internal/kubernetes" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/manager/server.go b/internal/manager/server.go index 49c951a6..4398a238 100644 --- a/internal/manager/server.go +++ b/internal/manager/server.go @@ -3,7 +3,7 @@ package manager import ( "net/http" - "github.com/opendevstack/pipeline/internal/httpjson" + "github.com/opendevstack/ods-pipeline/internal/httpjson" ) func HealthHandler() http.Handler { diff --git a/internal/manager/watch.go b/internal/manager/watch.go index 67a8f977..55c5f625 100644 --- a/internal/manager/watch.go +++ b/internal/manager/watch.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/logging" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/manager/watch_test.go b/internal/manager/watch_test.go index f1368be4..d53c01f1 100644 --- a/internal/manager/watch_test.go +++ b/internal/manager/watch_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - tektonClient "github.com/opendevstack/pipeline/internal/tekton" - "github.com/opendevstack/pipeline/pkg/logging" + tektonClient "github.com/opendevstack/ods-pipeline/internal/tekton" + "github.com/opendevstack/ods-pipeline/pkg/logging" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/utils/clock" diff --git a/internal/notification/client.go b/internal/notification/client.go index 9f546895..e4ac4737 100644 --- a/internal/notification/client.go +++ b/internal/notification/client.go @@ -8,8 +8,8 @@ import ( "net/http" "time" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) type Client struct { diff --git a/internal/notification/client_test.go b/internal/notification/client_test.go index b7ad9153..42d47abe 100644 --- a/internal/notification/client_test.go +++ b/internal/notification/client_test.go @@ -9,8 +9,8 @@ import ( "text/template" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/internal/testfile" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/testfile" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) func TestWebhookCall(t *testing.T) { diff --git a/internal/notification/config.go b/internal/notification/config.go index 67ab1751..8d28b45e 100644 --- a/internal/notification/config.go +++ b/internal/notification/config.go @@ -9,7 +9,7 @@ import ( "strings" "text/template" - "github.com/opendevstack/pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/notification/config_test.go b/internal/notification/config_test.go index a0dca95c..d9993906 100644 --- a/internal/notification/config_test.go +++ b/internal/notification/config_test.go @@ -10,8 +10,8 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/testfile" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/testfile" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/tasks/tasks.go b/internal/tasks/tasks.go index 101239e1..03469ef3 100644 --- a/internal/tasks/tasks.go +++ b/internal/tasks/tasks.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" "sigs.k8s.io/yaml" ) diff --git a/internal/tekton/client.go b/internal/tekton/client.go index 167a56c2..d0920311 100644 --- a/internal/tekton/client.go +++ b/internal/tekton/client.go @@ -3,7 +3,7 @@ package tekton import ( "errors" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/logging" tektonClient "github.com/tektoncd/pipeline/pkg/client/clientset/versioned" v1beta1 "github.com/tektoncd/pipeline/pkg/client/clientset/versioned/typed/pipeline/v1beta1" "k8s.io/client-go/rest" diff --git a/internal/testfile/testdata.go b/internal/testfile/testdata.go index 4fd2cb6a..2fa09677 100644 --- a/internal/testfile/testdata.go +++ b/internal/testfile/testdata.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/opendevstack/pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/projectpath" ) // ReadFixture returns the contents of the fixture file or fails. diff --git a/pkg/bitbucket/branches_test.go b/pkg/bitbucket/branches_test.go index 2c55077d..1f8117de 100644 --- a/pkg/bitbucket/branches_test.go +++ b/pkg/bitbucket/branches_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestBranchList(t *testing.T) { diff --git a/pkg/bitbucket/build_status_test.go b/pkg/bitbucket/build_status_test.go index a16d112a..760fb12b 100644 --- a/pkg/bitbucket/build_status_test.go +++ b/pkg/bitbucket/build_status_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestBuildStatusCreate(t *testing.T) { diff --git a/pkg/bitbucket/client.go b/pkg/bitbucket/client.go index a966e985..db4b5b28 100644 --- a/pkg/bitbucket/client.go +++ b/pkg/bitbucket/client.go @@ -8,7 +8,7 @@ import ( "net/url" "time" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/logging" ) // Loosely based on https://github.com/brandur/wanikaniapi. diff --git a/pkg/bitbucket/code_insights_test.go b/pkg/bitbucket/code_insights_test.go index 5e18e861..b127b13a 100644 --- a/pkg/bitbucket/code_insights_test.go +++ b/pkg/bitbucket/code_insights_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/internal/testfile" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/internal/testfile" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestInsightReportCreate(t *testing.T) { diff --git a/pkg/bitbucket/commits_test.go b/pkg/bitbucket/commits_test.go index 211a368c..874129d9 100644 --- a/pkg/bitbucket/commits_test.go +++ b/pkg/bitbucket/commits_test.go @@ -3,7 +3,7 @@ package bitbucket import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestCommitGet(t *testing.T) { diff --git a/pkg/bitbucket/projects_test.go b/pkg/bitbucket/projects_test.go index 1b1e1207..d06e2921 100644 --- a/pkg/bitbucket/projects_test.go +++ b/pkg/bitbucket/projects_test.go @@ -3,7 +3,7 @@ package bitbucket import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestProjectCreate(t *testing.T) { diff --git a/pkg/bitbucket/raw_test.go b/pkg/bitbucket/raw_test.go index c84feb29..0bc59b4b 100644 --- a/pkg/bitbucket/raw_test.go +++ b/pkg/bitbucket/raw_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestRawGet(t *testing.T) { diff --git a/pkg/bitbucket/repos_test.go b/pkg/bitbucket/repos_test.go index 3fa15716..94f424b1 100644 --- a/pkg/bitbucket/repos_test.go +++ b/pkg/bitbucket/repos_test.go @@ -3,7 +3,7 @@ package bitbucket import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestRepoCreate(t *testing.T) { diff --git a/pkg/bitbucket/tags_test.go b/pkg/bitbucket/tags_test.go index b3386c36..1a0a490a 100644 --- a/pkg/bitbucket/tags_test.go +++ b/pkg/bitbucket/tags_test.go @@ -3,7 +3,7 @@ package bitbucket import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestTagCreate(t *testing.T) { diff --git a/pkg/bitbucket/webhooks_test.go b/pkg/bitbucket/webhooks_test.go index 16877c24..25c96796 100644 --- a/pkg/bitbucket/webhooks_test.go +++ b/pkg/bitbucket/webhooks_test.go @@ -3,7 +3,7 @@ package bitbucket import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestWebhookCreate(t *testing.T) { diff --git a/pkg/config/ods_test.go b/pkg/config/ods_test.go index ca198dc4..ceb36dae 100644 --- a/pkg/config/ods_test.go +++ b/pkg/config/ods_test.go @@ -4,7 +4,7 @@ import ( "path/filepath" "testing" - "github.com/opendevstack/pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/projectpath" ) func TestReadFromDir(t *testing.T) { diff --git a/pkg/nexus/client.go b/pkg/nexus/client.go index a0717bb6..09f99460 100644 --- a/pkg/nexus/client.go +++ b/pkg/nexus/client.go @@ -7,7 +7,7 @@ import ( "net/url" "time" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/logging" nexusrm "github.com/sonatype-nexus-community/gonexus/rm" ) diff --git a/pkg/nexus/download_test.go b/pkg/nexus/download_test.go index 7a13f33b..d14be0bf 100644 --- a/pkg/nexus/download_test.go +++ b/pkg/nexus/download_test.go @@ -7,8 +7,8 @@ import ( "os" "testing" - "github.com/opendevstack/pipeline/internal/testfile" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/internal/testfile" + "github.com/opendevstack/ods-pipeline/pkg/logging" ) func TestDownload(t *testing.T) { diff --git a/pkg/pipelinectxt/artifacts.go b/pkg/pipelinectxt/artifacts.go index cf3ce2cc..49dccc8b 100644 --- a/pkg/pipelinectxt/artifacts.go +++ b/pkg/pipelinectxt/artifacts.go @@ -11,9 +11,9 @@ import ( "path/filepath" "strings" - "github.com/opendevstack/pipeline/internal/file" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/internal/file" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" "sigs.k8s.io/yaml" ) diff --git a/pkg/pipelinectxt/artifacts_test.go b/pkg/pipelinectxt/artifacts_test.go index 46d7c759..c8c1993f 100644 --- a/pkg/pipelinectxt/artifacts_test.go +++ b/pkg/pipelinectxt/artifacts_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" ) func TestReadArtifactsDir(t *testing.T) { diff --git a/pkg/pipelinectxt/context_test.go b/pkg/pipelinectxt/context_test.go index 249c9b81..72a4a95a 100644 --- a/pkg/pipelinectxt/context_test.go +++ b/pkg/pipelinectxt/context_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/internal/gittest" + "github.com/opendevstack/ods-pipeline/internal/gittest" ) func TestAssemble(t *testing.T) { diff --git a/pkg/sonar/client.go b/pkg/sonar/client.go index 843a9f00..0eb8421b 100644 --- a/pkg/sonar/client.go +++ b/pkg/sonar/client.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) type ClientInterface interface { diff --git a/pkg/sonar/compute_engine_test.go b/pkg/sonar/compute_engine_test.go index e3c82e06..838828df 100644 --- a/pkg/sonar/compute_engine_test.go +++ b/pkg/sonar/compute_engine_test.go @@ -3,7 +3,7 @@ package sonar import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestComputeEngineTaskGet(t *testing.T) { diff --git a/pkg/sonar/quality_gate_test.go b/pkg/sonar/quality_gate_test.go index 9604373d..1c35398d 100644 --- a/pkg/sonar/quality_gate_test.go +++ b/pkg/sonar/quality_gate_test.go @@ -3,7 +3,7 @@ package sonar import ( "testing" - "github.com/opendevstack/pipeline/test/testserver" + "github.com/opendevstack/ods-pipeline/test/testserver" ) func TestQualityGateGet(t *testing.T) { diff --git a/pkg/sonar/report.go b/pkg/sonar/report.go index 3692eba8..5328b74a 100644 --- a/pkg/sonar/report.go +++ b/pkg/sonar/report.go @@ -5,9 +5,9 @@ import ( "path/filepath" "time" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/file" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/file" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" ) // GenerateReports generates SonarQube reports using cnesreport. diff --git a/pkg/sonar/scan.go b/pkg/sonar/scan.go index 8279bd32..988de1ee 100644 --- a/pkg/sonar/scan.go +++ b/pkg/sonar/scan.go @@ -7,7 +7,7 @@ import ( "os" "strings" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" ) type PullRequest struct { diff --git a/pkg/sonar/scan_test.go b/pkg/sonar/scan_test.go index eca928de..629f543f 100644 --- a/pkg/sonar/scan_test.go +++ b/pkg/sonar/scan_test.go @@ -4,7 +4,7 @@ import ( "path/filepath" "testing" - "github.com/opendevstack/pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/projectpath" ) func TestExtractComputeEngineTaskID(t *testing.T) { diff --git a/pkg/tasktesting/bitbucket.go b/pkg/tasktesting/bitbucket.go index 98798323..d1f23839 100644 --- a/pkg/tasktesting/bitbucket.go +++ b/pkg/tasktesting/bitbucket.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/installation" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/internal/installation" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/logging" kclient "k8s.io/client-go/kubernetes" ) diff --git a/pkg/tasktesting/check.go b/pkg/tasktesting/check.go index 667cc430..8a8acba9 100644 --- a/pkg/tasktesting/check.go +++ b/pkg/tasktesting/check.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" ) type Service string diff --git a/pkg/tasktesting/git.go b/pkg/tasktesting/git.go index cd2274a8..25ec1179 100644 --- a/pkg/tasktesting/git.go +++ b/pkg/tasktesting/git.go @@ -13,11 +13,11 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/random" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/random" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" "golang.org/x/net/html" "golang.org/x/net/publicsuffix" kclient "k8s.io/client-go/kubernetes" diff --git a/pkg/tasktesting/helper.go b/pkg/tasktesting/helper.go index 50b76e1a..bd047c3f 100644 --- a/pkg/tasktesting/helper.go +++ b/pkg/tasktesting/helper.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/command" - k "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/internal/random" + "github.com/opendevstack/ods-pipeline/internal/command" + k "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/random" "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "knative.dev/pkg/apis" diff --git a/pkg/tasktesting/nexus.go b/pkg/tasktesting/nexus.go index b9d4a0bd..502c9d83 100644 --- a/pkg/tasktesting/nexus.go +++ b/pkg/tasktesting/nexus.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/installation" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/internal/installation" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/nexus" kclient "k8s.io/client-go/kubernetes" ) diff --git a/pkg/tasktesting/run.go b/pkg/tasktesting/run.go index 56972e76..78e05b16 100644 --- a/pkg/tasktesting/run.go +++ b/pkg/tasktesting/run.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/internal/directory" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/internal/directory" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" v1 "k8s.io/api/core/v1" ) diff --git a/pkg/tasktesting/taskrun.go b/pkg/tasktesting/taskrun.go index 795132e5..e3cff523 100644 --- a/pkg/tasktesting/taskrun.go +++ b/pkg/tasktesting/taskrun.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/internal/random" + "github.com/opendevstack/ods-pipeline/internal/random" tekton "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" pipelineclientset "github.com/tektoncd/pipeline/pkg/client/clientset/versioned" corev1 "k8s.io/api/core/v1" diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index cafe5078..46fe336b 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -12,10 +12,10 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" tekton "github.com/tektoncd/pipeline/pkg/client/clientset/versioned" corev1 "k8s.io/api/core/v1" diff --git a/test/scripts/download-aqua-scanner_test.go b/test/scripts/download-aqua-scanner_test.go index ffd15723..11803f82 100644 --- a/test/scripts/download-aqua-scanner_test.go +++ b/test/scripts/download-aqua-scanner_test.go @@ -9,7 +9,7 @@ import ( "os" "testing" - "github.com/opendevstack/pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/command" ) const ( diff --git a/test/tasks/common_test.go b/test/tasks/common_test.go index 4208fac1..2e9ebb27 100644 --- a/test/tasks/common_test.go +++ b/test/tasks/common_test.go @@ -9,14 +9,14 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/internal/directory" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/sonar" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/directory" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/sonar" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" "golang.org/x/exp/slices" kclient "k8s.io/client-go/kubernetes" "sigs.k8s.io/yaml" diff --git a/test/tasks/ods-aqua-scan_test.go b/test/tasks/ods-aqua-scan_test.go index 0039059c..efc74f34 100644 --- a/test/tasks/ods-aqua-scan_test.go +++ b/test/tasks/ods-aqua-scan_test.go @@ -3,7 +3,7 @@ package tasks import ( "testing" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSAquaScan(t *testing.T) { diff --git a/test/tasks/ods-build-go_test.go b/test/tasks/ods-build-go_test.go index 813bce4f..d8b6c2ee 100644 --- a/test/tasks/ods-build-go_test.go +++ b/test/tasks/ods-build-go_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/sonar" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/sonar" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSBuildGo(t *testing.T) { diff --git a/test/tasks/ods-build-gradle_test.go b/test/tasks/ods-build-gradle_test.go index 9bc7d045..6a7f5335 100644 --- a/test/tasks/ods-build-gradle_test.go +++ b/test/tasks/ods-build-gradle_test.go @@ -5,9 +5,9 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSBuildGradle(t *testing.T) { diff --git a/test/tasks/ods-build-npm_test.go b/test/tasks/ods-build-npm_test.go index 69a519d4..ec4cbd12 100644 --- a/test/tasks/ods-build-npm_test.go +++ b/test/tasks/ods-build-npm_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/sonar" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/sonar" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSBuildNPM(t *testing.T) { diff --git a/test/tasks/ods-build-python_test.go b/test/tasks/ods-build-python_test.go index 618928d1..ad4ecd75 100644 --- a/test/tasks/ods-build-python_test.go +++ b/test/tasks/ods-build-python_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/sonar" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/sonar" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSBuildPython(t *testing.T) { diff --git a/test/tasks/ods-deploy-helm_external_test.go b/test/tasks/ods-deploy-helm_external_test.go index 589b9553..81830958 100644 --- a/test/tasks/ods-deploy-helm_external_test.go +++ b/test/tasks/ods-deploy-helm_external_test.go @@ -10,14 +10,14 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/internal/random" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/random" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/test/tasks/ods-deploy-helm_test.go b/test/tasks/ods-deploy-helm_test.go index d3c61b8a..70507cbd 100644 --- a/test/tasks/ods-deploy-helm_test.go +++ b/test/tasks/ods-deploy-helm_test.go @@ -8,13 +8,13 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/kubernetes" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/internal/random" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/kubernetes" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/internal/random" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" diff --git a/test/tasks/ods-finish_test.go b/test/tasks/ods-finish_test.go index 1b4c5737..e2058e71 100644 --- a/test/tasks/ods-finish_test.go +++ b/test/tasks/ods-finish_test.go @@ -8,10 +8,10 @@ import ( "testing" "time" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSFinish(t *testing.T) { diff --git a/test/tasks/ods-package-image_test.go b/test/tasks/ods-package-image_test.go index 6d2bb5c3..de391248 100644 --- a/test/tasks/ods-package-image_test.go +++ b/test/tasks/ods-package-image_test.go @@ -9,12 +9,12 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/opendevstack/pipeline/internal/command" - "github.com/opendevstack/pipeline/internal/installation" - "github.com/opendevstack/pipeline/pkg/artifact" - "github.com/opendevstack/pipeline/pkg/logging" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/command" + "github.com/opendevstack/ods-pipeline/internal/installation" + "github.com/opendevstack/ods-pipeline/pkg/artifact" + "github.com/opendevstack/ods-pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" "golang.org/x/exp/slices" ) diff --git a/test/tasks/ods-start_test.go b/test/tasks/ods-start_test.go index 7c90bdbc..c4d55fd7 100644 --- a/test/tasks/ods-start_test.go +++ b/test/tasks/ods-start_test.go @@ -6,13 +6,13 @@ import ( "strings" "testing" - "github.com/opendevstack/pipeline/internal/directory" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/bitbucket" - "github.com/opendevstack/pipeline/pkg/config" - "github.com/opendevstack/pipeline/pkg/nexus" - "github.com/opendevstack/pipeline/pkg/pipelinectxt" - "github.com/opendevstack/pipeline/pkg/tasktesting" + "github.com/opendevstack/ods-pipeline/internal/directory" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/bitbucket" + "github.com/opendevstack/ods-pipeline/pkg/config" + "github.com/opendevstack/ods-pipeline/pkg/nexus" + "github.com/opendevstack/ods-pipeline/pkg/pipelinectxt" + "github.com/opendevstack/ods-pipeline/pkg/tasktesting" ) func TestTaskODSStart(t *testing.T) { diff --git a/test/testserver/testserver.go b/test/testserver/testserver.go index b56e95ee..0e18e56c 100644 --- a/test/testserver/testserver.go +++ b/test/testserver/testserver.go @@ -10,8 +10,8 @@ import ( "path/filepath" "testing" - "github.com/opendevstack/pipeline/internal/projectpath" - "github.com/opendevstack/pipeline/pkg/logging" + "github.com/opendevstack/ods-pipeline/internal/projectpath" + "github.com/opendevstack/ods-pipeline/pkg/logging" ) type RecordedResponse struct {