This repository was archived by the owner on Mar 21, 2025. It is now read-only.
Refactor to ease development of tasks in external Git repositories #722
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Provide Go package(s) allowing to develop tasks easily in external Git repositories. Eventually, the goal is to extract the build / package / deploy tasks from this repo and have them in separate Git repositories with independent lifecycle.
Package
tektontaskrun
provides ODS Pipeline independent functionality to run Tekton tasks in a KinD cluster. The code is mostly copied fromtest/tasks/common_test.go
andpkg/tasktesting
. Packageodstasktest
builds on top oftektontaskrun
and provides ODS Pipeline specific functionality to run ODS Pipeline tasks (e.g. installing ODS Pipeline, starting Nexus, etc.).As a side-effect, the new approach allows to just run the Go tests without requiring to prepare any state upfront. All dependencies will be taken care of by the Go packages. As an example, here is how an external repo can use this:
This is still very much in progress.
For two examples using this PR, see https://github.com/BIX-Digital/ods-pipeline-go and https://github.com/BIX-Digital/ods-pipeline-sonar.
Closes #163
Tasks:
docs/design
directory or not applicabledocs
directory or not applicablemake test
) or not applicable