Documentation
¶
Index ¶
- func Containerize(next func(params map[string]interface{}) string) func(params map[string]interface{}) string
- func ExecContainer(ctx context.Context, containerId string, cmd []string) ([]byte, error)
- func GroovyDSLWorkflow(ctx workflow.Context, pipeline Pipeline) (map[string]any, error)
- type Agent
- type Docker
- type DockerContainer
- type MultiKVCommand
- type Parallel
- type Param
- type Pipeline
- type QuotedString
- type SingleKVCommand
- type Stage
- type StageActivities
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Containerize ¶
func ExecContainer ¶
Types ¶
type Docker ¶
type Docker struct {
Image QuotedString `@String`
}
type DockerContainer ¶
type DockerContainer struct { DockerClient *dockerClient.Client ContainerId string }
func NewDockerContainer ¶
func NewDockerContainer(ctx context.Context, imageName string) (*DockerContainer, error)
NewDockerContainer starts a Docker container with a specified image
func (*DockerContainer) StopContainer ¶
func (dm *DockerContainer) StopContainer(ctx context.Context, imageName string) error
type MultiKVCommand ¶
type Param ¶
type Param struct { Key string `@Ident ":"` Value QuotedString `@String` }
type Pipeline ¶
type Pipeline struct { Agent *Agent `"pipeline" "{" "agent" @@` Stages []*Stage `"stages" "{" @@+ "}"` Close string `"}"` }
Pipeline represents the main Jenkins pipeline structure
type QuotedString ¶
type QuotedString string
func (*QuotedString) Capture ¶
func (o *QuotedString) Capture(values []string) error
Capture method strips quotes from the Image field
type SingleKVCommand ¶
type SingleKVCommand struct { Command string `@Ident` Value QuotedString `@String` }
type Stage ¶
type Stage struct { Name QuotedString `"stage" "(" @String ")" "{"` Agent *Agent `( "agent" @@ )?` Steps []*Step `( "steps" "{" @@+ "}" )?` FailFast *bool `( "failFast" @Bool )?` Parallel Parallel `( "parallel" "{" @@+ "}" )?` Close string `"}"` }
Stage represents a stage block within stages
Click to show internal directories.
Click to hide internal directories.