Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipelines move maven artifacts to windows server

Mark Rogers
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!
August 14, 2024

I'm trying to figure out how to have the output from a maven build (jar files) post to a remote server. something like the following perhaps? and also, how to have the downstream builds know where those are. Our existing system was written a long time ago as a manual jenkins process and I can't see how it's actually connecting those so I'm essentially working from scratch on an existing project. Any help you can give would be much appreciated.

script:

   - mvn clean install

      variables:

         OUTPUT: \\100.20.3\C$\yada\yada

 

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2024

Hi Mark,

I noticed that you have not yet received a response from our community. I'm Ben from the Bitbucket Cloud support team and will be providing you with some suggestions to achieve this.  

We have a number of pipes that are purpose built for deploying to remote servers depending on your preferred connection protocol - you can find these below with setup instructions:

If your maven artifacts are created as a result of your script steps, you can add the deployment to the remote server as an after-script, for example:

      testbuild:
        - step:
            name: 'step1'
            script:
            - maven steps go here
            after-script:
            - pipe deploy script goes here

Please note - you will need to ensure that the remote server has our build IP addresses whitelisted, and any port open that is associated with your choice of protocol - you can find more information below:

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

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

Atlassian Community Events