I've configured my Jenkins master to use docker and I can connect to docker, I've got a simple pipeline to test this:
node ('docker-build-slave') {
stage ('On slave') {
sh 'ls -l'
sh 'uname -a'
}
}
When I instigate a build and look at whats being written to the console, I get:
Started by user chris adkin
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘docker-build-slave’ are offline
and it just hangs, I'm wondering if there is something really obvious I ave missed, do I need to create a node for my docker build slaves ?.
If I go onto the machine hosting jenkins, I can see that the build slave container have been started.