jenkins

package
v0.0.0-...-81b45a2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package jenkins - Job Result Cache

Copyright (c) 2014 Ohmu Ltd. Licensed under the Apache License, Version 2.0 (see LICENSE)

Package jenkins - Jenkins CI HTTP/SSH Client

Copyright (c) 2014 Ohmu Ltd. Licensed under the Apache License, Version 2.0 (see LICENSE)

Package jenkins - JSON Data Structs

Copyright (c) 2014 Ohmu Ltd. Licensed under the Apache License, Version 2.0 (see LICENSE)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Causes []Cause
}

type Build

type Build struct {
	Number int
}

type Case

type Case struct {
	Status          string
	Name            string
	ClassName       string
	Duration        float64
	ErrorStackTrace string
	Stderr          string
	Stdout          string
}

type Cause

type Cause struct {
	UserID string
}

type Count

type Count int64

func (*Count) String

func (c *Count) String() string

type Duration

type Duration int64 // Jenkins duration is total ms

func (*Duration) String

func (d *Duration) String() string

type GitStatus

type GitStatus struct {
	LastBuiltRevision struct {
		Branch []struct {
			SHA1 string
			Name string
		}
	}
	RemoteURLs []string
}

func (*GitStatus) Branch

func (g *GitStatus) Branch() string

func (*GitStatus) CommitID

func (g *GitStatus) CommitID() string

type Jenkins

type Jenkins struct {
	URL                string
	InsecureSkipVerify bool
	SSH                *sshcmd.SSHNode
	*JobCache
	// contains filtered or unexported fields
}

func MakeJenkins

func MakeJenkins(runnerID, url string, insecure bool, jobCache *JobCache) *Jenkins

func (*Jenkins) QueryJobBuilds

func (j *Jenkins) QueryJobBuilds(jobName string) ([]string, error)

func (*Jenkins) QueryJobStatus

func (j *Jenkins) QueryJobStatus(jobName string, jobNumber string, testDetails bool) (*JobStatus, error)

func (*Jenkins) QueryJobs

func (j *Jenkins) QueryJobs() ([]string, error)

type Job

type Job struct {
	Name string
}

type JobBuilds

type JobBuilds struct {
	Builds *[]Build
}

type JobCache

type JobCache struct {
	CacheDir string
}

func (*JobCache) Retrieve

func (c *JobCache) Retrieve(runner, job, build string) (*JobStatus, error)

func (*JobCache) Store

func (c *JobCache) Store(runner, job, build string, status *JobStatus) error

type JobStatus

type JobStatus struct {
	Building bool
	Result   string
	Timestamp
	Duration
	BuiltOn string
	URL     string
	*TestReport
	Actions []Action
	XUserID string // moved from "causes"
	*GitStatus
}

func (*JobStatus) HasTestReport

func (j *JobStatus) HasTestReport() bool

func (*JobStatus) IsFailed

func (j *JobStatus) IsFailed() bool

func (*JobStatus) Prune

func (j *JobStatus) Prune()

func (*JobStatus) String

func (j *JobStatus) String() string

type Jobs

type Jobs struct {
	Jobs *[]Job
}

type Suite

type Suite struct {
	Cases []*Case
}

type TestReport

type TestReport struct {
	FailCount Count
	PassCount Count
	SkipCount Count
	Suites    []*Suite
}

func (*TestReport) Prune

func (s *TestReport) Prune()

type Timestamp

type Timestamp int64

func (*Timestamp) String

func (t *Timestamp) String() string

Jump to

Keyboard shortcuts

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