jobs

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertJobParams added in v0.4.0

func ConvertJobParams(jobName string)

func GetJobConfigXml

func GetJobConfigXml(jobName string)

func RunPipelineScript

func RunPipelineScript(pipelineScriptPath string)

Types

type BooleanParameter added in v0.4.0

type BooleanParameter struct {
	XMLName      xml.Name `xml:"hudson.model.BooleanParameterDefinition"`
	Name         string   `xml:"name"`
	Description  string   `xml:"description"`
	DefaultValue bool     `xml:"defaultValue"`
}

type ChoiceParameter added in v0.4.0

type ChoiceParameter struct {
	XMLName     xml.Name    `xml:"hudson.model.ChoiceParameterDefinition"`
	Name        string      `xml:"name"`
	Description string      `xml:"description"`
	Choices     StringArray `xml:"choices"`
}

type GroovyScript added in v0.4.0

type GroovyScript struct {
	XMLName              xml.Name             `xml:"script"`
	SecureScript         SecureScript         `xml:"secureScript"`
	SecureFallbackScript SecureFallbackScript `xml:"secureFallbackScript"`
}

type LinkedHashMap added in v0.4.0

type LinkedHashMap struct {
	XMLName xml.Name `xml:"parameters"`
}

type ListGitBranchesParameter added in v0.4.0

type ListGitBranchesParameter struct {
	XMLName            xml.Name `xml:"com.syhuang.hudson.plugins.listgitbranchesparameter.ListGitBranchesParameterDefinition"`
	Name               string   `xml:"name"`
	Description        string   `xml:"description"`
	RemoteURL          string   `xml:"remoteURL"`
	CredentialsId      string   `xml:"credentialsId"`
	TagFilter          string   `xml:"tagFilter"`
	BranchFilter       string   `xml:"branchFilter"`
	SortMode           string   `xml:"sortMode"`
	SelectedValue      string   `xml:"selectedValue"`
	QuickFilterEnabled bool     `xml:"quickFilterEnabled"`
	ListSize           int      `xml:"listSize"`
	DefaultValue       string   `xml:"defaultValue"`
	Type               string   `xml:"type"`
}

type PasswordParameter added in v0.4.2

type PasswordParameter struct {
	XMLName      xml.Name `xml:"hudson.model.PasswordParameterDefinition"`
	Name         string   `xml:"name"`
	Description  string   `xml:"description"`
	DefaultValue string   `xml:"defaultValue"`
}

type SecureFallbackScript added in v0.4.0

type SecureFallbackScript struct {
	XMLName xml.Name `xml:"secureFallbackScript"`
	Plugin  string   `xml:"plugin,attr"`
	Script  string   `xml:"script"`
	Sandbox bool     `xml:"sandbox"`
}

type SecureScript added in v0.4.0

type SecureScript struct {
	XMLName xml.Name `xml:"secureScript"`
	Plugin  string   `xml:"plugin,attr"`
	Script  string   `xml:"script"`
	Sandbox bool     `xml:"sandbox"`
}

type StringArray added in v0.4.0

type StringArray struct {
	XMLName xml.Name `xml:"choices"`
	Choices []string `xml:"a>string"`
}

type StringParameter added in v0.4.2

type StringParameter struct {
	XMLName      xml.Name `xml:"hudson.model.StringParameterDefinition"`
	Name         string   `xml:"name"`
	Description  string   `xml:"description"`
	DefaultValue string   `xml:"defaultValue"`
}

type TextParameter added in v0.4.2

type TextParameter struct {
	XMLName      xml.Name `xml:"hudson.model.TextParameterDefinition"`
	Name         string   `xml:"name"`
	Description  string   `xml:"description"`
	DefaultValue string   `xml:"defaultValue"`
}

type UnoCascadeChoiceParameter added in v0.4.0

type UnoCascadeChoiceParameter struct {
	XMLName              xml.Name      `xml:"org.biouno.unochoice.CascadeChoiceParameter"`
	Name                 string        `xml:"name"`
	Description          string        `xml:"description"`
	RandomName           string        `xml:"randomName"`
	VisibleItemCount     int           `xml:"visibleItemCount"`
	Script               GroovyScript  `xml:"script"`
	ProjectName          string        `xml:"projectName"`
	ProjectFullName      string        `xml:"projectFullName"`
	Parameters           LinkedHashMap `xml:"parameters"`
	ReferencedParameters string        `xml:"referencedParameters"`
	ChoiceType           string        `xml:"choiceType"`
	Filterable           bool          `xml:"filterable"`
	FilterLength         int           `xml:"filterLength"`
}

type UnoChoiceParameter added in v0.4.0

type UnoChoiceParameter struct {
	XMLName          xml.Name     `xml:"org.biouno.unochoice.ChoiceParameter"`
	Plugin           string       `xml:"plugin,attr"`
	Name             string       `xml:"name"`
	Description      string       `xml:"description"`
	RandomName       string       `xml:"randomName"`
	VisibleItemCount int          `xml:"visibleItemCount"`
	Script           GroovyScript `xml:"script"`
	ProjectName      string       `xml:"projectName"`
	ProjectFullName  string       `xml:"projectFullName"`
	ChoiceType       string       `xml:"choiceType"`
	Filterable       bool         `xml:"filterable"`
	FilterLength     int          `xml:"filterLength"`
}

type UnoDynamicReferenceParameter added in v0.4.2

type UnoDynamicReferenceParameter struct {
	XMLName              xml.Name      `xml:"org.biouno.unochoice.DynamicReferenceParameter"`
	Name                 string        `xml:"name"`
	Description          string        `xml:"description"`
	RandomName           string        `xml:"randomName"`
	VisibleItemCount     int           `xml:"visibleItemCount"`
	Script               GroovyScript  `xml:"script"`
	ProjectName          string        `xml:"projectName"`
	ProjectFullName      string        `xml:"projectFullName"`
	Parameters           LinkedHashMap `xml:"parameters"`
	ReferencedParameters string        `xml:"referencedParameters"`
	ChoiceType           string        `xml:"choiceType"`
	OmitValueField       bool          `xml:"omitValueField"`
}

type XPathSearchStruct added in v0.4.0

type XPathSearchStruct struct {
	SearchString string
	Type         reflect.Type
}

Jump to

Keyboard shortcuts

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