scheduledbranchreleaser

package
v0.0.0-...-0637115 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PULSE_MESSAGE    = "scheduledbranchreleaser:pulse"
	RELEASE_MESSAGE  = "scheduledbranchreleaser:release"
	COMPLETE_MESSAGE = "scheduledbranchreleaser:scheduled"

	SCHEDULED_TIME_THRESHOLD = time.Duration(time.Minute * 1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduledBranchReleaser

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

func (*ScheduledBranchReleaser) Description

func (x *ScheduledBranchReleaser) Description() string

func (*ScheduledBranchReleaser) Process

How does this work? This plugin mostly relies on the CodeAmp plugin in order to make the magic happen.

This plugin receives a 'pulse' message from the CodeAmp plugin after that plugin receive a 'heartbeat' message. The pulse message contains data for the project extension. This plugin uses that information to determine if we should proceed through the function based solely on if the schedule matches up with the desired build time.

The CodeAmp plugin is responsible for dispatching these messages and for determining if the project is in an applicable configuration that being a branch being set to something other than the desired BRANCH

Once this plugin has decided that the schedule matches, it fires off an event that is then again handled by the CodeAmp plugin. The second event handling is the portion that is responsible for orchetrasting the release and triggering the release process

Required Fields: BRANCH - Which branch should this project be automatically updated to? SCHEDULE - When should the branch be updated and a release created?

func (*ScheduledBranchReleaser) SampleConfig

func (x *ScheduledBranchReleaser) SampleConfig() string

func (*ScheduledBranchReleaser) Start

func (x *ScheduledBranchReleaser) Start(e chan transistor.Event) error

func (*ScheduledBranchReleaser) Stop

func (x *ScheduledBranchReleaser) Stop()

func (*ScheduledBranchReleaser) Subscribe

func (x *ScheduledBranchReleaser) Subscribe() []string

Jump to

Keyboard shortcuts

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