Forums

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

Generate artifact (jar) and deploy it to FTP Server

Thomas Kiesl
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!
November 25, 2021

Hello all! Is there a way to build and move artifacts (Java, Spring Boot Application) to a FTP server. I use Maven for the builds and gerante my jar via "clean package -Pproduction".

I found out that via SFTP it is maybe possible to reach this goal. Something like this:

https://stackoverflow.com/questions/67519816/sftp-deployment-using-bitbucket-pipeline-yml-of-react-build

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2021

@Thomas Kiesl  hi. Thanks for your question. Good example of using sftp-deploy but you need specify which files you want to upload:

- pipe: atlassian/ftp-deploy:0.3.6
  variables:
    USER: $USER
    SERVER: $SERVER
    PASSWORD: $PASSWORD
    REMOTE_PATH: $REMOTE_PATH
LOCAL_PATH: build

Maybe this will be useful too: maven build template

Regards, Igor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events