deploy vs redeploy

6 views
Skip to first unread message

Steve Lopez

unread,
May 24, 2024, 4:00:22 PM5/24/24
to codehau...@googlegroups.com
I have an ongoing issue and hoping it is just a misunderstanding of the Cargo plugin and an incorrect setting...

I have a development branch that is deployed to Tomcat 9 using the 'deploy' command.   This is integrated tightly with Gitlab CI/CD so it happens automatically when the project builds.    However, if I make a change and push those changes, the deploy command fails, presumably because the application already exists.   I then have to manually trigger a 'redeploy

I've tried updating my Gitlab CI/CD yml to use 'redeploy' but then it will fail if I'm working on a new branch and the application doesn't exist yet. 

Is there a way to do either of the following?
  • when using deploy and cargo finds the application already exists, have it automatically switch to redeploy
  • alternatively, if using redeploy as the default command,  ensure that redeploy will do a deploy if the application doesn't exist yet

S. Ali Tokmen

unread,
May 25, 2024, 1:53:02 AM5/25/24
to codehau...@googlegroups.com

Hi Steve

The cargo:redeploy command is expected to do exactly what you describe: undeploy if necessary, and then deploy.

Please share your code / configuration, as well as the full error message.

Regards

S. Ali Tokmen
https://ali.tokmen.com/
https://contact.ali.tokmen.com/
--
Codehaus Cargo - https://codehaus-cargo.github.io/
---
You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/CAOuASvP28wfuQx_qiykmEpbGPcsfi3FQSjjrtA%2Boy3ApLL2hAA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages