Help with setting ANT deploy task in Bamboo

purushottam kaushik April 18, 2023

Hi there,

I am trying to create a CI deploy task using ANT. In my setup we use remote agents (AWS eleastic agents) to run the task.

My first task is 'Sourcecode checkout' - which works fine

Second task in same stage is build using ANT :

I do have deploy.xml which will eventuelly build and move the code to server.I also haveall supporting jar files. 

Now the question, i fail to understand where i should place my jar files and deploy.xml. 

I have placed 'Build file' as path to my Deploy.xml in linked bitbucket project

and Target as path to jar files in bitbucket  

 

I tried to place them in my bitbucket along with my source code but when run the build i get below error:

 

**Please ask if something is not clear - i am newbie and trying this for first time**

 

18-Apr-2023 13:28:22Starting task 'Deploytoudvk' of type 'com.atlassian.bamboo.plugins.ant:task.builder.ant'
18-Apr-2023 13:28:22
Beginning to execute external process for build 'Central Applications - Deploy-UDVK - Default Job #21 (CENTRALDEVELOPMENT-DEP-JOB1-21)'
... running command line:
C:\opt\ant-1.10\bin\ant.bat -Djava.io.tmpdir=C:\Users\Bamboo\AppData\Local\Temp\CENTRALDEVELOPMENT-DEP-JOB1 -f https://bitbucket.abcd.net/projects/CEN/repos/smallmaster/browse/Smallmaster/deploy.xml?at=feature%2FFeature1 https://bitbucket.abcd.net/projects/CEN/repos/smallmaster/browse/Smallmaster/masterdeploy.xml?at=refs%2Fheads%2Ffeature%2FFeature1
... in: C:\build\CENTRALDEVELOPMENT-DEP-JOB1
18-Apr-2023 13:28:22Buildfile: https:\bitbucket.abcd.net\projects\CEN\repos\smallmaster\browse\Smallmaster\deploy.xml?at does not exist!
18-Apr-2023 13:28:22Build failed
18-Apr-2023 13:28:22Failing task since return code of [C:\opt\ant-1.10\bin\ant.bat -Djava.io.tmpdir=C:\Users\Bamboo\AppData\Local\Temp\CENTRALDEVELOPMENT-DEP-JOB1 -f https://bitbucket.abcd.net/projects/CEN/repos/smallmaster/browse/Smallmaster/deploy.xml?at=feature%2FFeature1 https://bitbucket.abcd.net/projects/CEN/repos/smallmaster/browse/Smallmaster/masterdeploy.xml?at=refs%2Fheads%2Ffeature%2FFeature1] was 1 while expected 0

   

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events