I have a Java project with ANT build. I want to use Bitbucket pipelines for build, deployment. Can you please share the steps for executing it?
Hi Nitin,
Bitbucket Pipelines provides a bash shell that you can execute builds in. You'll need to ensure that Ant is installed in the Docker image you use.
The default Pipelines Docker image already has Ant installed.
What ant commands are you running locally? You should be able to reuse the same commands in the script section.
Here's an example:
image: atlassian/default-image:2
pipelines:
default:
- step:
script: # Place the commands you normally run locally into this section.
- ant
Thanks,
Phil
Hello Philip,
When you say
# Place the commands you normally run locally into this section.
is just put the originals commands with original indentation ? Because I put what you said and appears several errors and don't work.
Could you give a example with some lines of xml of command ant build?
Thank you,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After the build is done what is the default location of the .war/.jar file?
Can we define it here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.
Share you experiences!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.