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
This is not bitbucket pipelines specific problem. Please try a tomcat related forum or documentation.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.