Created
January 23, 2017 13:18
-
-
Save danielwegener/ffe387ced1670db00ac12f48bee97ffd to your computer and use it in GitHub Desktop.
Jenkinsfile docker template configuration for jenkins docker plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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