jenkins

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Class                string                 `json:"_class,omitempty"`
	ParameterDefinitions []ParameterDefinitions `json:"parameterDefinitions,omitempty"`
}

type Client

type Client struct {
	*req.Client
	User  string
	Token string
}

func NewClient

func NewClient(host, user, token string) (client *Client)

func (*Client) GetJob

func (c *Client) GetJob(name string) (resp *Job, err error)

func (*Client) ListJob

func (c *Client) ListJob() (resp *ListJobsResp, err error)

type DefaultParameterValue

type DefaultParameterValue struct {
	Class string      `json:"_class"`
	Value interface{} `json:"value"`
}

type Job

type Job struct {
	Class                 string        `json:"_class"`
	Actions               []Actions     `json:"actions"`
	Description           string        `json:"description"`
	DisplayName           string        `json:"displayName"`
	DisplayNameOrNull     interface{}   `json:"displayNameOrNull"`
	FullDisplayName       string        `json:"fullDisplayName"`
	FullName              string        `json:"fullName"`
	Name                  string        `json:"name"`
	URL                   string        `json:"url"`
	Buildable             bool          `json:"buildable"`
	Builds                []interface{} `json:"builds"`
	Color                 string        `json:"color"`
	FirstBuild            interface{}   `json:"firstBuild"`
	HealthReport          []interface{} `json:"healthReport"`
	InQueue               bool          `json:"inQueue"`
	KeepDependencies      bool          `json:"keepDependencies"`
	LastBuild             interface{}   `json:"lastBuild"`
	LastCompletedBuild    interface{}   `json:"lastCompletedBuild"`
	LastFailedBuild       interface{}   `json:"lastFailedBuild"`
	LastStableBuild       interface{}   `json:"lastStableBuild"`
	LastSuccessfulBuild   interface{}   `json:"lastSuccessfulBuild"`
	LastUnstableBuild     interface{}   `json:"lastUnstableBuild"`
	LastUnsuccessfulBuild interface{}   `json:"lastUnsuccessfulBuild"`
	NextBuildNumber       int           `json:"nextBuildNumber"`
	Property              []Property    `json:"property"`
	QueueItem             interface{}   `json:"queueItem"`
	ConcurrentBuild       bool          `json:"concurrentBuild"`
	Disabled              bool          `json:"disabled"`
	DownstreamProjects    []interface{} `json:"downstreamProjects"`
	LabelExpression       interface{}   `json:"labelExpression"`
	Scm                   Scm           `json:"scm"`
	UpstreamProjects      []interface{} `json:"upstreamProjects"`
}

func (Job) GetParameters

func (j Job) GetParameters() []ParameterDefinitions

type Jobs

type Jobs struct {
	Class string `json:"_class"`
	Name  string `json:"name"`
}

type ListJobsResp

type ListJobsResp struct {
	Class string `json:"_class"`
	Jobs  []Jobs `json:"jobs"`
}

type ParameterDefinitions

type ParameterDefinitions struct {
	Class                 string                `json:"_class"`
	DefaultParameterValue DefaultParameterValue `json:"defaultParameterValue"`
	Description           string                `json:"description"`
	Name                  string                `json:"name"`
	Type                  ParameterType         `json:"type"`
	Choices               []string              `json:"choices,omitempty"`
}

type ParameterType

type ParameterType string
var (
	Choice ParameterType = "ChoiceParameterDefinition"
	Bool   ParameterType = "BooleanParameterDefinition"
	Text   ParameterType = "TextParameterDefinition"
	String ParameterType = "StringParameterDefinition"
)

type Property

type Property struct {
	Class                string                 `json:"_class"`
	ParameterDefinitions []ParameterDefinitions `json:"parameterDefinitions"`
}

type Scm

type Scm struct {
	Class string `json:"_class"`
}

Jump to

Keyboard shortcuts

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