Documentation
¶
Index ¶
Constants ¶
View Source
const (
PrepareConfigPath = "/tm/config.json"
)
Variables ¶
This section is empty.
Functions ¶
func GetPrepareStep ¶
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.
Click to show internal directories.
Click to hide internal directories.