Documentation ¶
Index ¶
Constants ¶
View Source
const ( PluginName = "buildbaron" JIRAFailure = "Error searching jira for ticket" JQLBFQuery = "(project in (%v)) and ( %v ) order by updatedDate desc" NotesCollection = "build_baron_notes" )
View Source
const ( FailingTasksField = "customfield_12950" FailingVariantField = "customfield_14277" EvergreenProjectField = "customfield_14278" UIRoot = "https://evergreen.mongodb.com" )
View Source
const DescriptionTemplateString = ` h2. [{{.Task.DisplayName}} failed on {{.Task.BuildVariant}}|` + UIRoot + `/task/{{.Task.Id}}/{{.Task.Execution}}] Host: [{{.Host.Host}}|` + UIRoot + `/host/{{.Host.Id}}] Project: [{{.Task.Project}}|` + UIRoot + `/waterfall/{{.Task.Project}}] {{range .Tests}}*{{.Name}}* - [Logs|{{.URL}}] | [History|{{.HistoryURL}}] {{end}} ~BF Ticket Generated by [~{{.UserId}}]~ `
Variables ¶
View Source
var DescriptionTemplate = template.Must(template.New("Desc").Parse(DescriptionTemplateString))
View Source
var TaskIdKey = bsonutil.MustHaveTag(Note{}, "TaskId")
Functions ¶
This section is empty.
Types ¶
type BuildBaronPlugin ¶
type BuildBaronPlugin struct {
// contains filtered or unexported fields
}
func (*BuildBaronPlugin) Configure ¶
func (bbp *BuildBaronPlugin) Configure(conf map[string]interface{}) error
func (*BuildBaronPlugin) GetPanelConfig ¶
func (bbp *BuildBaronPlugin) GetPanelConfig() (*plugin.PanelConfig, error)
func (*BuildBaronPlugin) GetUIHandler ¶
func (bbp *BuildBaronPlugin) GetUIHandler() http.Handler
GetUIHandler adds a path for looking up build failures in JIRA.
func (*BuildBaronPlugin) Name ¶
func (bbp *BuildBaronPlugin) Name() string
type Note ¶
type Note struct { TaskId string `bson:"_id" json:"-"` UnixNanoTime int64 `bson:"time" json:"time"` Content string `bson:"content" json:"content"` }
Note contains arbitrary information entered by an Evergreen user, scope to a task.
func NoteForTask ¶
NoteForTask returns the note for the given task Id, if it exists.
Click to show internal directories.
Click to hide internal directories.