Integration into Jenkins Pipeline
The CLI agent supports integration into Jenkins in two ways: through Jenkinsfile and a specialized plugin.
Adding agent to Jenkinsfile
Using a Docker image
Example of adding agent to a pipeline (Docker image)
Using a binary file
To use the console agent binary file, you must first perform the following steps on the Jenkins machine:
- Download the file with the command
or
The JOHNNY_VERSION variable must be replaced with the agent version. A list of current versions is available in the Changelog section.
The REGISTRY_URL, REGISTRY_USERNAME and REGISTRY_PASSWORD variables should be replaced with the URL, login and password received from the vendor.
- Allow file execution
Example of running agent in pipeline (binary file)
Was this page helpful?
