trigger

package
v0.0.0-...-418c65a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalProjectTriggers

func EvalProjectTriggers(e *event.EventLogEntry, processor projectProcessor) ([]model.Version, error)

EvalProjectTriggers takes an event log entry and a processor (either the mock or TriggerDownstreamVersion) and checks if any downstream builds should be triggered, creating them if they should

func JIRATaskPayload

func JIRATaskPayload(subID, project, uiUrl, eventID, testNames string, t *task.Task) (*message.JiraIssue, error)

func NotificationsFromEvent

func NotificationsFromEvent(e *event.EventLogEntry) ([]notification.Notification, error)

It is possible for this function to return notifications and errors at the same time. If the notifications array is not nil, they are valid and should be processed as normal.

func TriggerDownstreamVersion

func TriggerDownstreamVersion(args ProcessorArgs) (*model.Version, error)

TriggerDownstreamVersion assumes that you definitely want to create a downstream version and will go through the process of version creation given a triggering version

func ValidateTrigger

func ValidateTrigger(resourceType, triggerName string) bool

Types

type ProcessorArgs

type ProcessorArgs struct {
	SourceVersion     *model.Version
	DownstreamProject model.ProjectRef
	ConfigFile        string
	Command           string
	GenerateFile      string
	TriggerID         string
	TriggerType       string
	EventID           string
	DefinitionID      string
	Alias             string
}

Jump to

Keyboard shortcuts

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