Hi,
my pipeline is this:
image: redwolfgang20/grails:latest
pipelines:
default:
- step:
name: Build war Tunneling and Pushing
script:
- grails prod war
- ssh -t -L 18081:localhost:8080 root@IP -fN
- cd build/libs/
- INPUT=$(ls -t *".war" | head -n 1)
- name=$(echo "$INPUT" | cut -f 1 -d '.')
- curl -v -u $TOMCAT_USER:$TOMCAT_PASSWORD -T build/libs/$name.war http://localhost:18081/manager/text/deploy?path=/'$name'&update=true
the first time I run it it worked, even if the curl line was a bit different. After everytime I run it I got this:
<span>bind: Cannot assign requested address</span><span>+ ssh -t -L 18081:localhost:8080 <a href="mailto:root@54.38.156.187" target="_blank" rel="nofollow noopener noreferrer">root@IP</a> -fN<br></span>
I have no idea how to fix it, please advice
thanks
cesare
UPDATE
I change ssh tunnel command with this and it seems to work:
ssh -fN root@IP -L *:18080:localhost:8080
but now my curl command does not return nothing it seems it does anything at all even wtih --trace parameter