Using del and rd in build plan

Hi all

I have added cmd.exe as an executable to Bamboo (Running on Server 2003 R2 Datacenter) but when i try to use del or rd command lines the files that it was supposed to remove still remain.

Is there a particular way to do this so that i can remove source files from the directory after the program has compiled but before i have it zipped and uploaded to S3?

Thanks in advance


2 answers

1 accepted


I think you should configure your job to use Script Task which allows you to create script that will be executed with cmd.exe

Yes that would probably work a lot better, i didnt think of that as i had only seen examples of the script been used with Bash on a Unix/Linux install

So have i have tried using rd FUNC /s /q and also "rd FUNC /s /q" when i realised that it seemed to be listing each one as a seperate argument but nothing seems to work, the files still remain.

Since del and rd don't exist as seperate executables i cannot add them to Bamboo in that way

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,315 views 0 5
Read article

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