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

Bitbucket pipelines does not finish deploy war to tomcat

Umair March 8, 2019

I am trying to run a script to deploy my war file to remote tomcat server on bitbucket pipelines and seems like it does not wait for the deployment to be finished. Any help?

curl -T $APPNAME#testapp.war https://tomcatadmin:testpwd@$REMOTESERVER/manager/text/deploy?path=/$APPNAME/testapp&update=true

1 answer

0 votes
mkleint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 21, 2019

This is not bitbucket pipelines specific problem. Please try a tomcat related forum or documentation.

Radek Antoniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 23, 2019

Maybe it's not pipelines specific problem, but I can imagine this should be solved by the BitBucket Pipelines pipes. In the same manner you could say that "scp-deploy" is not a pipeline specific problem.

I'd expect a pipe that does the transfer via Tomcat Manager, using Tomcat credentials and verifies that the return response is OK/DEPLOYED, similarly to Jenkins plugin.

mkleint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 23, 2019

Yes, you should be able to write a pipe that performs the deploy and waits for the application to be ready. You still need domain knowledge around tomcat to do so.

Documentation on how to write a pipe: https://confluence.atlassian.com/bitbucket/how-to-write-a-pipe-for-bitbucket-pipelines-966051288.html

Like Radek Antoniuk likes this
Radek Antoniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2019

Thanks for the resources, indeed that's the path that I went by.

The pipe is already available here and the documentation will follow shortly: https://bitbucket.org/radekantoniuk/bitbucket-tomcat-deploy-pipe

mkleint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2019

awesome!

Jfmeza February 8, 2022

Hi Radek can u share with me the document for pipeline to deploy in a tomcat server

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events