Skip to content

Instantly share code, notes, and snippets.

@danielwegener
Created January 23, 2017 13:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielwegener/ffe387ced1670db00ac12f48bee97ffd to your computer and use it in GitHub Desktop.
Save danielwegener/ffe387ced1670db00ac12f48bee97ffd to your computer and use it in GitHub Desktop.
Jenkinsfile docker template configuration for jenkins docker plugin
properties([
[$class : 'DockerJobProperty',
cleanImages : true,
dockerJobTemplate: [$class : 'DockerJobTemplateProperty',
cloudname: 'DockerHost-9',
// Supports other properties from https://git.io/vM5wf
template : [$class : 'DockerTemplate',
labelString : 'my-worker-label',
instanceCapStr : '4',
mode : 'EXCLUSIVE',
//numExecutors : 1,
pullStrategy : 'PULL_LATEST',
// Supports other properties from https://git.io/vM5VS
dockerTemplateBase: [
$class: 'DockerTemplateBase',
image : 'my-docker.hub:/ci/ci-base-image:1.0.0'
// Supports other properties from https://git.io/vM5Va
]]
]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment