step

package
v2.2.0-20240131 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReploaceTestSuite  = "TestSuite"
	ReploaceTestSuites = "TestSuites"
)

Variables

This section is empty.

Functions

func Environs

func Environs(envs []string) []string

func GetObjectPath

func GetObjectPath(name, subFolder string) string

func HTTPSCloneURL

func HTTPSCloneURL(source, token, owner, name string, optionalGiteeAddr string) string

HTTPSCloneURL returns HTTPS clone url

func OAuthCloneURL

func OAuthCloneURL(source, token, address, owner, name, scheme string) string

SSHCloneURL returns Oauth clone url e.g. https://oauth2:ACCESS_TOKEN@somegitlab.com/owner/name.git

func RunStep

func RunStep(ctx context.Context, step *meta.Step, workspace, paths string, envs, secretEnvs []string, updater configmap.Updater) error

Types

type ArchiveStep

type ArchiveStep struct {
	// contains filtered or unexported fields
}

func NewArchiveStep

func NewArchiveStep(spec interface{}, workspace string, envs, secretEnvs []string) (*ArchiveStep, error)

func (*ArchiveStep) Run

func (s *ArchiveStep) Run(ctx context.Context) error

type DebugStep

type DebugStep struct {
	Type string
	// contains filtered or unexported fields
}

func NewDebugStep

func NewDebugStep(_type string, workspace string, envs, secretEnvs []string, updater configmap.Updater) (*DebugStep, error)

func (*DebugStep) Run

func (s *DebugStep) Run(ctx context.Context) (err error)

type DistributeImageStep

type DistributeImageStep struct {
	// contains filtered or unexported fields
}

func NewDistributeImageStep

func NewDistributeImageStep(spec interface{}, workspace string, envs, secretEnvs []string) (*DistributeImageStep, error)

func (*DistributeImageStep) Run

type DockerBuildStep

type DockerBuildStep struct {
	// contains filtered or unexported fields
}

func NewDockerBuildStep

func NewDockerBuildStep(spec interface{}, workspace string, envs, secretEnvs []string) (*DockerBuildStep, error)

func (*DockerBuildStep) Run

func (s *DockerBuildStep) Run(ctx context.Context) error

type DownloadArtifactStep

type DownloadArtifactStep struct {
	// contains filtered or unexported fields
}

func NewDownloadArtifactStep

func NewDownloadArtifactStep(spec interface{}, workspace string, envs, secretEnvs []string) (*DownloadArtifactStep, error)

func (*DownloadArtifactStep) Run

type GitStep

type GitStep struct {
	// contains filtered or unexported fields
}

func NewGitStep

func NewGitStep(spec interface{}, workspace string, envs, secretEnvs []string) (*GitStep, error)

func (*GitStep) Run

func (s *GitStep) Run(ctx context.Context) error

func (*GitStep) RunGitGc

func (s *GitStep) RunGitGc(folder string) error

type JunitReportStep

type JunitReportStep struct {
	// contains filtered or unexported fields
}

func NewJunitReportStep

func NewJunitReportStep(spec interface{}, workspace string, envs, secretEnvs []string) (*JunitReportStep, error)

func (*JunitReportStep) Run

func (s *JunitReportStep) Run(ctx context.Context) error

type ShellStep

type ShellStep struct {
	Paths string
	// contains filtered or unexported fields
}

func NewShellStep

func NewShellStep(spec interface{}, workspace, paths string, envs, secretEnvs []string) (*ShellStep, error)

func (*ShellStep) Run

func (s *ShellStep) Run(ctx context.Context) error

type SonarCheckStep

type SonarCheckStep struct {
	// contains filtered or unexported fields
}

func NewSonarCheckStep

func NewSonarCheckStep(spec interface{}, workspace string, envs, secretEnvs []string) (*SonarCheckStep, error)

func (*SonarCheckStep) Run

func (s *SonarCheckStep) Run(ctx context.Context) error

type Step

type Step interface {
	Run(ctx context.Context) error
}

type TarArchiveStep

type TarArchiveStep struct {
	// contains filtered or unexported fields
}

func NewTararchiveStep

func NewTararchiveStep(spec interface{}, workspace string, envs, secretEnvs []string) (*TarArchiveStep, error)

func (*TarArchiveStep) Run

func (s *TarArchiveStep) Run(ctx context.Context) error

type ToolInstallStep

type ToolInstallStep struct {
	// contains filtered or unexported fields
}

func NewToolInstallStep

func NewToolInstallStep(spec interface{}, workspace string, envs, secretEnvs []string) (*ToolInstallStep, error)

func (*ToolInstallStep) Run

func (s *ToolInstallStep) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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