CONTROLLED DATA
Leidos Proprietary - US Citizens ONLY
The information contained herein is proprietary to Leidos, Inc. It may not be used, reproduced, disclosed, or exported without the written approval of Leidos.
An agent in our implementation of Jenkins is a pre-defined set of Docker images that can be used to perform a build step. The following snippet demonstrates declaring an agent and using the agent in a build step. Note that this is not a full pipleine, just the code that relates to an agent.
... agent { node { label 'docker-builder' } // end node } // end agent ... // run a Docker build stage ('Docker build') { steps { container('docker') { echo 'docker build' script { docker.withRegistry('https://REGISTRY.artifactory.sdodev.leidos.com/', 'CREDENTIAL'){ docker.build('IMAGE:TAG', '.') } // end docker } // end script } //end container } // end steps } //end stage
Notes:
Overview
Content Tools
Apps