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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.