jenkinsci / docker-swarm-plugin

Jenkins plugin which allows to add a Docker Swarm as a cloud agent provider
https://plugins.jenkins.io/docker-swarm/
MIT License
55 stars 47 forks source link

Multiple Labels #96

Closed wassy92x closed 3 years ago

wassy92x commented 3 years ago

If I setup a docker swarm cloud, add an template for an service / container and set multiple labels for this template, Jenkins can't find a this node.

For example I set the following labels to the template: "docker_cloud_agent linux" and setup the following Jenkinsfile node('linux') { echo 'Hello World' } Jenkins can't find an agent with label "linux"

Jenkins-Version: 2.249.3 Docker-Swarm-Plugin-Version: 1.9 (I also tried a self compile version of the current master-branch)

Nuh commented 3 years ago

Implementented in PR #97