Creating Jenkins Agent Docker Container
Jenkins Agent
Create a new node to run the Jenkins agent.
Goto "Manage Jenkins":
Select "Nodes" under the System Configuration
Click the "New Node" button:
Define the name of your node and select "Permanent Agent". Click "Create".
Define “Remote root directory”:
Define labels based on Automation Studio Version:
Change “Usage” to “Only build jobs with label expressions matching this mode”:
Change “Launch method” to “Launch agent by connecting it to the controller”, check “Use WebSocket”, and click "Save":
Copy the secret provided:
Docker Build
Create a Docker container for the agent.
Open the Dockerfile in a text editor:
Adjust the JENKINS_URL for your configuration:
Add the Jenkins secret from the node creation to JENKINS_SECRET, and adjust the JENKINS_AGENT_NAME with the name of the node:
Copy any required Automation Studio upgrade files to the AS_Upgrades directory
For any 3rd party hardware files copy them to the AS_3rd_Party_Files. These can be copied from you local installation folder (e.g. C:\ProgramData\BR\AS412\Hardware)
Create the Docker image:
Deploy the Docker container