jenkins

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT 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 added in v0.19.0

func New(newSpec Spec) (Jenkins, error)

New returns a new valid GitHubRelease object.

func (*Jenkins) Changelog

func (j *Jenkins) Changelog(release version.Version) (string, error)

Changelog returns a changelog description based on a Jenkins version retrieved from a GitHub Release

func (Jenkins) Condition

func (j Jenkins) Condition(source string) (bool, error)

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

func (Jenkins) ConditionFromSCM

func (j Jenkins) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)

ConditionFromSCM checks if a key exists in a yaml file

func (Jenkins) Source

func (j Jenkins) Source(workingDir string) (string, error)

Source return the latest Jenkins version based on release type

type Spec added in v0.19.0

type Spec struct {
	Release string      // Defines the release name like latest or weekly
	Version string      // Defines a specific release version
	Github  github.Spec // Github Parameter used to retrieve a Jenkins changelog
}

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

func (Spec) Validate added in v0.19.0

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