jenkins

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 11 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() string

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

func (Jenkins) Condition

func (j Jenkins) Condition(source string, scm scm.ScmHandler, resultCondition *result.Condition) error

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

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