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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is it possible to create an artifact name based on a variable

Is it possible to create an artifact name based on a variable, like or bamboo.jira.version and so on.


Thanks in advance

1 answer

1 vote
Gabriel Ribeiro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 08, 2018

Hi Beck,

When you say "artifact name based on a variable", Are you talking about the file itself or use variables in the artifact definition page?

Artifact file:

As variables will be available at agent's environment while the build is running, you can use them in your tasks to produce your artifacts.

Very simple example:

If you want to create a "planKey-buildNumber.txt" file and write "hello world" into it, you just need to add a script task with the following inline script:

echo hello World > ${bamboo.planKey}-${bamboo.buildNumber}.txt

The same syntax can be used anywhere inside your build.

You will find more examples in the "Bamboo variables" documentation.

Artifact Definition:

Yes, you can use variables at the artifact definition fields, the only thing that you must pay attention is to do not use Build-specific variables (like ${bamboo.buildNumber}) in the "copy pattern" field, as these variable are evaluated by Bamboo dynamically at build time, you may face problems if you decide to use the artifact in another plan and/or deployment.

Please let me know if this answers your question.


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events