Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Missing wildcard matching within tasks configured for deployment on Bamboo

Aisha August 7, 2019

Hi Team,

Bamboo states "Could not find file" whenever I use wildcard matching to match the war files with a version number similar to IP address. Doesn't Bamboo support wildcard matching. I verified that my regex works when i use it on Regex matchers like Regex101 but Bamboo complains about file not found though the war file exists.

 

3 answers

1 vote
Jack Nolddor _Sweet Bananas_
Atlassian Partner
August 8, 2019

Hi Aisha,

Bamboo artifacts only support Ant file copy patterns not regular expressions.

Kind regards

0 votes
Jack Nolddor _Sweet Bananas_
Atlassian Partner
August 13, 2019

Wondering why do you need to delete this file each time...

Anyway if you need to ensure that your build/deploy plans always execute from scratch you should add the 'Clean working directory task' as the first task of your plan as shown below:

 

ksnip_20190813-232154.png

 

If this doesnt suit your needs,  be aware that you can use a 'Script Task' to run any command on your Bamboo Local/Remote agent to delete the file in the same way you will delete it using a the Terminal.

Kind Regards

0 votes
Aisha August 13, 2019

Hi Jack,

I have a war file in the format "filename-buildnumber.versionnumber.0.war". I want this war file to be removed before every deployment. How can I match the above file name for this purpose using the Ant file copy patterns?

filename - String

buildnumber - [0-9]

versionnumber - [0-9]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events