How I can get data from pipeline results Edited

Hello. Example I have step in my bitbucket-pipelines.yml

- step:
name: Deploy to remote server
image: atlassian/default-image:latest
- build
- echo "Deploy [develop] branch."
- cd build/
- echo "Sync remote server with build dir"
- echo "Copy log file to remote server"
- echo "Restart Remote Nginx Server"
- ssh $SERVER_USERNAME@$IP_ADDRESS -p $PUBLIC_PORT "sudo service nginx restart"
- curl -s -X POST$TELEGRAM_BOT_API_KEY/sendMessage -d chat_id=@webqual -d text="<b>[Deploy] Code successfully deployed on server</b><br>Commit <b>$BITBUCKET_COMMIT</b> from <b>$BITBUCKET_BRANCH</b> branch successfully deployed on server." -d parse_mode=HTML

 I want send with curl additional data from pipeline results. Example: get time from last or previouse step. 


What I want send with curl (example):

Commit #sd7as5 successfully deployed on server.


    -> Prepare step took 7s

    -> Install dependenies step took 2m 23s ... and more

1 answer

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

136 views 5 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you