How to use version name in Bamboo script

0 votes
Hi All,

We have 3 tasks in our Default Job in Bamboo - 1) Checkout the source code, 2) Maven build, and 3) Script to upload to AWS lambda function.  So 1 and 2, produces the .zip file named according the maven version, but step #3 doesn't know what the version is because it's a part of the maven build in the previous step.  So, I need to know how to tell step #3 what the .zip file name is.

We know the location will be prediction/target, but what is really unknown is the maven build version; it could be -0.0.1-SNAPSHOT, it could be -1.1.1210-SNAPSHOT. I know we could use the bambooBuildVersion, but then that means we would need to do a bunch of work to keep the maven major.minor.build versions in sync with bamboo...

So kindly let me know if we have any easy workaround of it.
Apr 8 in Other DevOps Questions by Abhishek
• 280 points
32 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
1 answer

How to stop sqlplus command in unix shell script when any sql fails

One idea would be to launch the ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 51,850 points
1,755 views
0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,850 points
792 views
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 57,530 points
209 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
142 views
0 votes
1 answer
0 votes
1 answer

How to use Powershell DSC for application installation?

Occasionally folks want to be able to ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 2,620 points
67 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
495 views
0 votes
1 answer