Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to build the jar of netbeans spring project in bitbucket

Jagadish Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2024

when i commit the code , i want build the jar in bitbucket , plz tell me the steps

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2024

Hello @Jagadish Kumar ,

and welcome to the Community!

In order to build files in Bitbucket Cloud you can make use of Bitbucket Pipelines.

As you're onboarding to the pipelines, I would suggest following the instructions of the below article : 

While creating your first pipeline, you'll have the option to select from a variety of templates, including Java builds, which you can use as a starting point to customize according to your needs.

The process basically consists of the following steps :

  1. Enable Pipelines:
    Go to your Repository settings > Settings under the Pipelines section and enable Bitbucket Pipelines for your repository.

     

  2. Create a bitbucket-pipelines.yml file:
    In the root of your project, create a bitbucket-pipelines.yml file. This file will contain the configuration for your build pipeline.

  3. Define your pipeline steps:
    Within the bitbucket-pipelines.yml file, you need to define the steps required to build your project. This typically involves installing dependencies and running the build commands.

  4. Configure the build commands:
    For Java, this might involve running Maven or Gradle commands to compile your code and generate the JAR file.

  5. Commit and push your changes:
    After setting up the bitbucket-pipelines.yml file, commit and push the changes to your Bitbucket repository.

Once Pipelines is enabled, any subsequent code commits to your repository will trigger the build pipeline automatically and will run the defined build steps.

I hope that helps! Should you have any questions, feel free to ask.

Thank you, @Jagadish Kumar !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events