Hi you all,
I’m having a puzzling issue with a pipeline and, maybe, some body can help me to understand it.
So thanks in advance!
it’s a simple configuration test
##########################
job2:
stage: test
needs:
- job: job1
before_script:
- eval $(ssh-agent -s)
- echo “${SSH_SERVICE_KEY}” | tr -d ‘\r’ | ssh-add -
script:
# KEEPALIVED
- ssh -p 9222 -o StrictHostKeyChecking=no -l root 192.168.XX.XX “keepalived --config-test=/tmp/1/keepalived.conf -l”
# NGINX
- ssh -p 9222 -o StrictHostKeyChecking=no -l root 192.168.XX.XX “nginx -t -c /tmp/nginx/nginx.conf”
##########################
the nginx works but the keepalived one fails everytime.
I went on the container generated by the runner and executed both commands, right as they are written here, and they worked fine but once in the pipeline there’s no chance…
Do you have any idea?
tnx