jenkins

package
v0.103.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// STABLE represents a stable release type
	STABLE string = "stable"
	// WEEKLY represents a weekly release type
	WEEKLY string = "weekly"
	// WRONG represents a bad release name
	WRONG string = "unknown"
)

Variables

This section is empty.

Functions

func ReleaseType

func ReleaseType(version string) (string, error)

ReleaseType return the release type of a version

Types

type Jenkins

type Jenkins struct {
	// contains filtered or unexported fields
}

Jenkins defines a resource of kind "githubrelease"

func New

func New(spec interface{}) (*Jenkins, error)

New returns a new valid GitHubRelease object.

func (Jenkins) Changelog

func (j Jenkins) Changelog(from, to string) *result.Changelogs

Changelog returns the link to the found Jenkins version's changelog

func (Jenkins) Condition

func (j Jenkins) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)

Condition checks that a Jenkins version exists and that the version match a valid release type

func (*Jenkins) ReportConfig added in v0.99.0

func (j *Jenkins) ReportConfig() interface{}

ReportConfig returns a new configuration with only the necessary fields to identify the resource without any sensitive information and context specific data.

func (*Jenkins) Source

func (j *Jenkins) Source(workingDir string, resultSource *result.Source) error

Source returns the latest Jenkins version based on release type

func (Jenkins) Target

func (j Jenkins) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error

type Spec

type Spec struct {
	// [s][c] Defines the release name. It accepts "stable" or "weekly"
	Release string `yaml:",omitempty"`
	// [s][c] Defines a specific release version (condition only)
	Version string `yaml:",omitempty"`
}

Spec defines a specification for a "jenkins" resource parsed from an updatecli manifest file

func (Spec) Validate

func (s Spec) Validate() (err error)

Validate run some validation on the Jenkins struct

Jump to

Keyboard shortcuts

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