Hello, I create a custom command task using /bin/sh to zip Angular Source Code and then copy/deploy to another server by scp and ssh. Here is the code sample
#!/bin/sh echo "Begin zip data..." tar -czvf client.tar.gz * echo "Begin copying data ..." scp client.tar.gz [email protected]:/opt/tomcat/webapps/ echo "Begin deleting old data ..." ssh [email protected] rm -rf /opt/tomcat/webapps/client echo "Begin unzip new data ..." ssh [email protected] mkdir -p /opt/tomcat/webapps/client ssh [email protected] tar -zxvf /opt/tomcat/webapps/client.tar.gz -C /opt/tomcat/webapps/client The problem is when one of the following tasks such as: zip, copy, unzip failed, status of pipeline is still success Question: How to make status of a pipeline failed in case using custom command task ? Thanks, Tin. -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
