prepare

package
v0.0.0-...-f905173 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrepareConfigPath = "/tm/config.json"
)

Variables

This section is empty.

Functions

func GetPrepareStep

func GetPrepareStep(useGlobalArtifacts bool) *v1beta1.DAGStep

Types

type Config

type Config struct {
	Directories  []string               `json:"directories"`
	Repositories map[string]*Repository `json:"repositories"`
}

Config represents the configuration for the prepare step. It defined which repos should be cloned and which folder have to be created

type Definition

type Definition struct {
	TestDefinition *testdefinition.TestDefinition
	GlobalInput    bool
	// contains filtered or unexported fields
}

PrepareDefinition is the TestDefinition of the prepare step to initialiaze the setup.

func New

func New(name string, addGlobalInput, addGlobalOutput bool) (*Definition, error)

New creates the TM prepare step The step clones all needed github config and outputs these repos as argo artifacts with the name "repoOwner-repoName-revision".

func (*Definition) AddLocation

func (p *Definition) AddLocation(loc testdefinition.Location)

AddLocation adds a testdef-location to the cloned repos and output artifacts.

func (*Definition) AddRepositoriesAsArtifacts

func (p *Definition) AddRepositoriesAsArtifacts() error

AddRepositoriesAsArtifacts adds all git config to be cloned as json array to the prepare step.

type Repository

type Repository struct {
	Name     string `json:"name"`
	URL      string `json:"url"`
	Revision string `json:"revision"`
}

PrepareRepository is passed as a json array to the prepare step.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL