Hello all
I'm setting up a pipeline with following yml:
image: maven:3.6.1
pipelines:
branches:
staging:
- step:
name: Build
caches:
- maven
script:
- mvn clean package -Ptest -Dmaven.test.skip=true
artifacts:
- '/opt/atlassian/pipelines/agent/build/target/**'
- step:
name: Deploy
#deployment: Test
script:
- pipe: atlassian/sftp-deploy:0.5.6
variables:
USER: $user
PASSWORD: $password
SERVER: $host
REMOTE_PATH: $remote_path
LOCAL_PATH: '/opt/atlassian/pipelines/agent/build/target/**'
DEBUG: 'true'
The build steps runs without errors, but the "Deploy" step shows:
<span>+ sshpass -p $password sftp -o PubkeyAuthentication=no -rp -v $user@$host:$remote_path</span><span>OpenSSH_7.9p1, OpenSSL 1.1.1g 21 Apr 2020</span><span>debug1: Reading configuration data /etc/ssh/ssh_config</span><span>debug1: Connecting to $host [$host] port $port.</span><span>debug1: Connection established.</span><span>debug1: identity file /root/.ssh/id_rsa type -1</span><span>debug1: identity file /root/.ssh/id_rsa-cert type -1</span><span>debug1: identity file /root/.ssh/id_dsa type -1</span><span>debug1: identity file /root/.ssh/id_dsa-cert type -1</span><span>debug1: identity file /root/.ssh/id_ecdsa type -1</span><span>debug1: identity file /root/.ssh/id_ecdsa-cert type -1</span><span>debug1: identity file /root/.ssh/id_ed25519 type -1</span><span>debug1: identity file /root/.ssh/id_ed25519-cert type -1</span><span>debug1: identity file /root/.ssh/id_xmss type -1</span><span>debug1: identity file /root/.ssh/id_xmss-cert type -1</span><span>debug1: Local version string SSH-2.0-OpenSSH_7.9</span><span>debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3</span><span>debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002</span><span>debug1: Authenticating to $host:$port as '$user'</span><span>debug1: SSH2_MSG_KEXINIT sent</span><span>debug1: SSH2_MSG_KEXINIT received</span><span>debug1: kex: algorithm: curve25519-sha256</span><span>debug1: kex: host key algorithm: ecdsa-sha2-nistp256</span><span>debug1: kex: server->client cipher: <a href="mailto:chacha20-poly1305@openssh.com" target="_blank" rel="noopener nofollow noreferrer">chacha20-poly1305@openssh.com</a> MAC: <implicit> compression: none</span><span>debug1: kex: client->server cipher: <a href="mailto:chacha20-poly1305@openssh.com" target="_blank" rel="noopener nofollow noreferrer">chacha20-poly1305@openssh.com</a> MAC: <implicit> compression: none</span><span>debug1: expecting SSH2_MSG_KEX_ECDH_REPLY</span><span>debug1: Server host key: ecdsa-sha2-nistp256 SHA256:SRlA0BflTfFlqjzyrb3r+8QT6FS+VeUY+NoDhr3wESc</span><span>+ STATUS=6</span><span>+ set -e</span><span>+ [[ 6 == \0 ]]</span><span>+ fail 'Deployment failed.'</span><span>+ echo -e '\e[31m✖ Deployment failed.\e[0m'</span><span>+ exit 6</span><span>✖ Deployment failed.</span><span>.... some more debug entries<br>DEBUG: Executing echo "mput /opt/atlassian/pipelines/agent/build/target/*.jar" | sshpass -p $password sftp -o PubkeyAuthentication=no -rp -v $user@$host:$remote_path</span>
What am I missing?