codeship / scripts

Scripts for use on Codeship Basic
https://codeship.com
MIT License
217 stars 172 forks source link

Steps name: DOES break on '-' | error creating network during run step: API error (403): Pool overlaps with other one on this address space #253

Closed benpetsch closed 5 years ago

benpetsch commented 5 years ago

I found a bug within the codeship-steps file handling.

If you run something like this:

# ./codeship-steps.yml

...
- name: swarm deploy 1
  service: ssh-helper
  command: /bin/bash -c "echo hello-world"
- name: swarm-deploy-2
  service: ssh-helper
  command: /bin/bash -c "echo hello-world"
...

The step with the name "swarm deploy 1" will be executed as expected. But step with the name "swarm-deploy-2" will raise an error message like this:

(step: swarm-deploy-2) error ✗
(step: swarm-deploy-2) error creating network during run step: API error (403): Pool overlaps with other one on this address space

It should be clear from the docs that '-' are breaking for step names. Better '-' should be allowed within step names. For '-' and any other unsupported character codeship/jet should raise a proper error message.

Solved for me by renaming the step.

benpetsch commented 5 years ago

Wrong repository. This error appeared under codeship pro script