Skip to content

Instantly share code, notes, and snippets.

@Miguelme
Last active July 8, 2020 10:27
Show Gist options
  • Save Miguelme/7e1d978f42439d3489c9ec31526d8f8d to your computer and use it in GitHub Desktop.
Save Miguelme/7e1d978f42439d3489c9ec31526d8f8d to your computer and use it in GitHub Desktop.
jenkins:
clouds:
- docker:
name: "docker"
dockerApi:
dockerHost:
uri: "tcp://docker:2376"
templates:
- labelString: "docker-agent"
dockerTemplateBase:
image: "jenkins/slave"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
remoteFs: "/home/jenkins/agent"
connector:
attach:
user: "jenkins"
instanceCapStr: "10"
retentionStrategy:
idleMinutes: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment