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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How do I establish the Build Timestamp during a deploy?

During build I am storing information to a remote server in a direcory

/path/December-2016/BUILD-PLAN-KEY/

I would like to retrieve this during Deploy.

 

The Bamboo variable bamboo.buildTimeStamp is not available.

Is there any way for me to deduce the month-year value of a past build?

1 answer

1 vote
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 16, 2016

Hello Michael,

This variable (bamboo.buildTimeStamp) is available to builds not deployments.

The are a few things you could do:

  1. create an artifact with the result of (bamboo.buildTimeStamp) and consume it in your deployment
  2. run an REST API call (https://docs.atlassian.com/bamboo/REST/5.14.1/#d2e439) from a Script task and parsing its result
http://localhost:8085/rest/api/latest/result/${bamboo.buildResultKey}.json

Kind regards,
Rafael P. Sperafico

Hi, 

I want to use the build time stamp in a deployment. 

The artifact definition has three fields 

name, location and copy pattern. 

How do I do your option 1 i.e. create an artifact with the result of bamboo.buildTimeStamp? Do I have to store it to a file or something? 

Thanks for any help

John. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events