Advanced installation of GoCD agent using zip installer
If you want to run GoCD on a platform which does not have a native installer or want to run GoCD without installing it, you could do so by using the zip installers.
- Download the zip installer for GoCD agent
- Unzip the installer in a folder of your choice. It creates a subfolder with the name
- Ensure that
javaexecutable is available on the
PATHenvironment variable. If you have multiple versions of java, or want to use a version of java that is not available on
PATHenvironment variable, edit the file
wrapper-config/wrapper-properties.confand change the variable
wrapper.java.commandto point to the java executable.
Managing the GoCD agent process
The GoCD agent script must be run with one of the following arguments:
|The GoCD agent will be started in the foreground
|The GoCD agent will be started as a daemon in the background
|The GoCD agent will be stopped
|The GoCD agent will be restarted
Overriding default startup arguments and environmentUsers can override default startup arguments in a editing the file
Registering your agent with the server
For security reasons, all newly installed GoCD agents need to be enabled on the GoCD server before work is assigned to them. This prevents an unauthorized person from getting access to your source code. To enable a newly installed GoCD agent, do the following:
- Open the GoCD server dashboard
- Follow the instructions here to find the agent you’ve just installed on the list and add the agent to your cloud. The GoCD server will now schedule work for this agent.