Documentation ¶
Index ¶
Constants ¶
View Source
const ( // job names NETWORK = "network" CONNECTION = "connection" TEST = "test" NETWORK_ICP = "network-icp" NETWORK_CM = "network-cm" CONNECTION_CM = "connection-cm" K8SNETWORK = "k8snetwork" MODULETEST = "moduletest" IBPCERTS = "ibpcerts" ADDORG = "addorg" // job status SUCCESS = "SUCCESS" FAIL = "FAIL" INPROGRESS = "INPROGRESS" // job parameters SERVICE_ID = "serviceid" METHOD = "method" LOCATION = "loc" GET = "GET" POST = "POST" DELETE = "DELETE" TESTCONFIG = "testconfig" // k8snetwork and module test REQUESTID = "requestid" UID = "uid" ACTION = "action" APACHE_BASE = "specpath" // apache base url. e.g. http://hfrdrestsrv.rtp.raleigh.ibm.com // add organizations into existing channels ORGNAME = "orgName" ORGCERTSFILE = "orgCertsFile" CHANNELS = "channels" )
Variables ¶
View Source
var (
StatusForbiddenErr = errors.New("http status forbidden error")
)
Functions ¶
This section is empty.
Types ¶
type Jenkins ¶
type Jenkins interface { // Input jobname and jobid string // Returns console text as []byte and error GetConsoleText(jobname, jobid string) ([]byte, error) // Input jobname and jobid string // Returns the content of workdir/results/service.json as []byte and error GetServiceJson(jobname, jobid string) ([]byte, error) // Input jobname and jobid string // Returns the content of workdir/results/package.tar as []byte and error ServeTar(jobname string, jobid string) ([]byte, error) // Input jobname string and parameters map. The params map will be passed // to the job--Build with Parameters // Returns queue id as string and error TriggerJob(jobname string, params map[string]string) (string, error) // Input queueid and jobname string // Return jobid, jobstatus string and error GetJobIdByQueueId(queueid string, jobname string) (string, string, error) // Input queueid and jobname string // Return jobid, jobstatus string and error only based on jenkins job status GetJobIdAndStatus(queueid string, jobname string) (string, string, error) }
func NewJenkins ¶
func NewJenkins() Jenkins
func NewMockJenkins ¶
func NewMockJenkins() Jenkins
Click to show internal directories.
Click to hide internal directories.