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

the second label of docker swarm can´t work with "pending—Jenkins doesn’t have label docker-swarm-xx" #5

Open GangChenTFS opened 6 years ago

GangChenTFS commented 6 years ago

Hello,

I installed docker swarm plugin in jenkins 2.111, after add one cloud with "docker swarm", I configured an image with label and build successfully, then I added second cloud with "docker swarm" also and combined an different images with this different label succussfuly . then configured the jobs to use the label images, the job can recognize the label, but when I did the job, it prompted "pending—Jenkins doesn’t have label docker-swarm-xx". I found the same issue for docker plugin, it seems docker swarm plugin can´t work since the second label. could you please share your comments? thanks.


docker info Containers: 5 Running: 5 Paused: 0 Stopped: 0 Images: 27 Server Version: 18.03.1-ce Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: active NodeID: xxxxxx Is Manager: true ClusterID: xxxxx Managers: 3 Nodes: 3 Orchestration: Task History Retention Limit: 5 Raft: Snapshot Interval: 10000 Number of Old Snapshots to Retain: 0 Heartbeat Tick: 1 Election Tick: 10 Dispatcher: Heartbeat Period: 5 seconds CA Configuration: Expiry Duration: 3 months Force Rotate: 0 Autolock Managers: false Root Rotation In Progress: false Node Address: xxxxxx Manager Addresses: xxxxxx Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Security Options: seccomp Profile: default Kernel Version: 3.10.0-862.el7.x86_64 Operating System: Red Hat Enterprise Linux OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 15.51GiB Name: RHSQHVST201.corporativo.pt ID: XVXK:LHO5:AVMM:MGBP:RZHD:YOBZ:PNQB:XZ5I:C3PY:CAKO:HCQN:JH36 Docker Root Dir: /apps/docker-data Debug Mode (client): false Debug Mode (server): true File Descriptors: 203 Goroutines: 243 System Time: 2018-06-21T17:11:31.710310496+01:00 EventsListeners: 0 HTTP Proxy: http://proxysrv.corporativo.pt:8080/ Username: henshitou Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

Jenkins Version : Jenkins ver. 2.111

Plugin : Docker plugin and docker swarm plugin

Roemer commented 5 years ago

I can confirm this. Currently the plugin only supports one swarm (but unlimited labels for that swarm). Do you really have two different Docker swarms?