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 this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.
Register today
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.