Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitRepos ¶
type GitRepos []GitRepo
GitRepos is the alias of GitRepo slice
func (GitRepos) GetBranchesAsJSONString ¶
GetBranchesAsJSONString returns the branches as JSON string
For example: ["master","fea-.*"]
type Jenkinsfile ¶
type Jenkinsfile struct {
Pipeline Pipeline `json:"pipeline"`
}
Jenkinsfile represents a structured Jenkinsfile
We could marshal or unmarshal the JSON format Jenkinsfile
type Pipeline ¶
type Pipeline struct {
Stages []Stage `json:"stages"`
}
Pipeline represents a Pipeline
type Stage ¶
type Stage struct { Name string `json:"name"` Branches []StageBranch `json:"branches"` }
Stage represents a stage in a Jenkinsfile
type StageBranch ¶
StageBranch contains the steps
type Step ¶
type Step struct { Name string `json:"name"` Arguments []StepArgument `json:"arguments"` }
Step represents a step of the a Pipeline
func (Step) GetArgument ¶
func (s Step) GetArgument(name string) (arg *StepArgument)
GetArgument finds the argument by name
type StepArgument ¶
type StepArgument struct { Key string `json:"key"` Value StepArgumentValue `json:"value"` }
StepArgument represents a step argument
type StepArgumentValue ¶
type StepArgumentValue struct { IsLiteral bool `json:"isLiteral"` Value interface{} `json:"value"` }
StepArgumentValue represents the value of a step argument
Click to show internal directories.
Click to hide internal directories.