Documentation
¶
Index ¶
Constants ¶
View Source
const ( WHEN_ON_SUCCESS = "on_success" WHEN_ON_FAILURE = "on_failure" WHEN_NEVER = "never" WHEN_ALWAYS = "always" WHEN_MANUAL = "manual" WHEN_DELAYED = "delayed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowFailure ¶
type AllowFailure struct { AllowFailure bool `default:"false"` AllowFailureExitCodes []int `default:"[]"` }
func (*AllowFailure) Parse ¶
func (a *AllowFailure) Parse(template any) error
type Artifacts ¶
type AutoCancel ¶
type AutoCancel struct { Commit string `gitlabci:"on_new_commit"` JobFailure string `gitlabci:"on_job_failure"` }
func (*AutoCancel) Parse ¶
func (ac *AutoCancel) Parse(template any) error
type Include ¶
type Job ¶
type Job struct { Name string Image Image `default:"{}"` Stage string `default:"test"` Script []string BeforeScript []string `default:"[]" gitlabci:"before_script"` AfterScript []string `default:"[]" gitlabci:"after_script"` When string `default:"on_success"` Rules []Rule Needs Needs `gitlabci:"needs"` Dependencies []string Variables map[string]string Interruptible bool Extends []string AllowFailure AllowFailure `gitlabci:"allow_failure"` Artifacts Artifacts Cache Cache Coverage string // contains filtered or unexported fields }
func (Job) GetActiveJob ¶
Get a copy of the current job, but overwritten with the first active rule
type Need ¶
type Needs ¶
type Pipeline ¶
type Pipeline struct { Stages []string `default:"[\"build\", \"test\", \"deploy\"]"` Include []Include `default:"[]"` Jobs map[string]Job `default:"{}"` Variables map[string]string WorkFlow WorkFlow Default Job // contains filtered or unexported fields }
func (*Pipeline) GetActiveJobs ¶
func (*Pipeline) GetJobsByStage ¶
type Rule ¶
type WorkflowRule ¶
type WorkflowRule struct { Rule AutoCancel AutoCancel `gitlabci:"auto_cancel"` }
func (*WorkflowRule) Parse ¶
func (rule *WorkflowRule) Parse(template any) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.