buildbaron

package module
v0.0.0-...-2e314c7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

README

build-baron-plugin

Installation

go get github.com/evergreen-ci/build-baron-plugin
cd $GOPATH/src/10gen.com/mci/plugin/config
ln -s ../../../../github.com/evergreen-ci/build-baron-plugin/config/build_baron.go

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

func NoteForTask(taskId string) (*Note, error)

NoteForTask returns the note for the given task Id, if it exists.

func (*Note) Upsert

func (n *Note) Upsert() error

Upsert overwrites an existing note.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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