codeship / scripts

Scripts for use on Codeship Basic

Home Page:https://codeship.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

benpetsch opened this issue · comments

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.

Wrong repository. This error appeared under codeship pro script