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

Using del and rd in build plan

DOT-COMmunications November 28, 2012

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

Adam

2 answers

1 accepted

1 vote
Answer accepted
Krystian Brazulewicz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2012

Adam

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

DOT-COMmunications November 29, 2012

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

0 votes
DOT-COMmunications November 29, 2012

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
TAGS
AUG Leaders

Atlassian Community Events