"Not deploying" in " Checking deployment" section


#1

Hello,

I am not able to get the deploy script to be executed in the Checking deployment section and the only thing that I see is “Not deploying” twice.

It used to work before.

The section in circle.yml is

deployment:
staging:
branch: master
commands:
- ./deploy.sh XXXX

Thanks in advance and best regards


#2

Is the build on the proper branch, per your config only the master branch will deploy.


#3

Hi, yes it is.
Now it is working again.
I suspect that if a ssh connection is created to the deploying VM, then the deploy is canceled for some reason. If you look to your own code and search for the “Not deploying” word we should get an answer of why we were not deploying.
Kind regards and thanks


#4

Hello,

That is right, SSH is for debugging purposes only, if you have an SSH enabled build the deployment step will not be run.

Best,
Lev


#5

Can this be added to docs?


#6

The documentation states

Your build commands will run as usual, with the exception of deployment,

If we can make this clearer please let me know!


#7

It could be really helpful if you mention it at https://circleci.com/docs/configuration/#deployment too.


#8

It would be very helpful if the log message stated the reason for example instead of “Not Deploying” something like “Deployment disabled when SSH is enabled”.


#9