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:
.... some more debug entries
DEBUG: Executing echo "mput /opt/atlassian/pipelines/agent/build/target/*.jar" | sshpass -p $password sftp -o PubkeyAuthentication=no -rp -v $user@$host:$remote_path+ sshpass -p $password sftp -o PubkeyAuthentication=no -rp -v $user@$host:$remote_path
OpenSSH_7.9p1, OpenSSL 1.1.1g 21 Apr 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to $host [$host] port $port.
debug1: Connection established.
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: identity file /root/.ssh/id_xmss type -1
debug1: identity file /root/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
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
debug1: Authenticating to $host:$port as '$user'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:SRlA0BflTfFlqjzyrb3r+8QT6FS+VeUY+NoDhr3wESc
+ STATUS=6
+ set -e
+ [[ 6 == \0 ]]
+ fail 'Deployment failed.'
+ echo -e '\e[31m✖ Deployment failed.\e[0m'
+ exit 6
✖ Deployment failed.
What am I missing?