Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jenkins ¶
type Jenkins struct { JenkinsUsername string `required:"true"` JenkinsAPIToken string `required:"true"` JenkinsBaseURL string `required:"true"` NatsChannel string `required:"true"` NatsConn *nats.Conn }
Jenkins represents the configuration of how to connect to a Jenkins server using username and API token for authentication. The BaseURL follows the structure of `"http://myjenkinsserver:8080/job/%s/build"`
func (*Jenkins) Start ¶
Start is the function that takes care of starting the agent and makes sure a file is creating to perform healthchecks in case the agent runs in a Docker container. By returning a boolean channel, it will make sure to create an infinite loop that can be ended grafecully by calling the stop method.
Click to show internal directories.
Click to hide internal directories.