Documentation ¶
Overview ¶
Package jenkins contains code to connect to Jenkins and trigger builds
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildRequest ¶
type BuildRequest struct {
BuildID string
}
BuildRequest contains the details to trigger a build
func UnmarshalBuildRequest ¶
func UnmarshalBuildRequest(data []byte) (BuildRequest, error)
UnmarshalBuildRequest turns a byte array into a proper BuildRequest struct
type BuildResponse ¶
BuildResponse contains the response from Jenkins
type Server ¶
Server contains details to connect to the Jenkins server
func (*Server) TriggerBuild ¶
func (s *Server) TriggerBuild(r *BuildRequest) (*BuildResponse, error)
TriggerBuild sends a request to the Jenkins server to trigger a build and responds accordingly
Click to show internal directories.
Click to hide internal directories.