Documentation
¶
Index ¶
- Constants
- type ScheduledBranchReleaser
- func (x *ScheduledBranchReleaser) Description() string
- func (x *ScheduledBranchReleaser) Process(e transistor.Event) error
- func (x *ScheduledBranchReleaser) SampleConfig() string
- func (x *ScheduledBranchReleaser) Start(e chan transistor.Event) error
- func (x *ScheduledBranchReleaser) Stop()
- func (x *ScheduledBranchReleaser) Subscribe() []string
Constants ¶
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 ¶
func (x *ScheduledBranchReleaser) Process(e transistor.Event) error
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