Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Whats wrong wiht my bitbucket-pipeline file?

jmurmis August 10, 2020

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_pathOpenSSH_7.9p1, OpenSSL 1.1.1g 21 Apr 2020debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Connecting to $host [$host] port $port.debug1: Connection established.debug1: identity file /root/.ssh/id_rsa type -1debug1: identity file /root/.ssh/id_rsa-cert type -1debug1: identity file /root/.ssh/id_dsa type -1debug1: identity file /root/.ssh/id_dsa-cert type -1debug1: identity file /root/.ssh/id_ecdsa type -1debug1: identity file /root/.ssh/id_ecdsa-cert type -1debug1: identity file /root/.ssh/id_ed25519 type -1debug1: identity file /root/.ssh/id_ed25519-cert type -1debug1: identity file /root/.ssh/id_xmss type -1debug1: identity file /root/.ssh/id_xmss-cert type -1debug1: Local version string SSH-2.0-OpenSSH_7.9debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3debug1: 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 0x04000002debug1: Authenticating to $host:$port as '$user'debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: algorithm: curve25519-sha256debug1: kex: host key algorithm: ecdsa-sha2-nistp256debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: nonedebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: nonedebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: 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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events