launcher

package
v0.0.126 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RepositoryLabelKey the label key for associating resources (Job/Task/Pipeline) to a repository
	RepositoryLabelKey = "git-operator.jenkins.io/repository"

	// CommitShaLabelKey the label key for associating the commit sha
	CommitShaLabelKey = "git-operator.jenkins.io/commit-sha"

	// RerunLabelKey the label key to force this job to retrigger
	RerunLabelKey = "git-operator.jenkins.io/rerun"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Launch launches a new Job/Task/Pipeline for the given repository if there has been a git commit
	// since the last
	Launch(opts LaunchOptions) ([]runtime.Object, error)
}

Interface the interface for launching Jobs/Tasks when there is a git commit in a repository

type LaunchOptions

type LaunchOptions struct {
	// Repository the repository name, namespace and git URL
	Repository repo.Repository

	// GitSHA the latest git commit SHA of the repository
	GitSHA string

	// 	Dir the root directory of the git clone of the repository
	Dir string

	// NoResourceApply if specified disable applying resources found in `.jx/git-operator/resources/*.yaml`
	NoResourceApply bool
}

LaunchOptions the options for launching a new Job/Task/Pipeline for a git repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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