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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Whats wrong wiht my bitbucket-pipeline file?

jmurmis I'm New Here Aug 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
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,849 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you