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.
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.