Hi,
   if my build actions get failed i needed to zip the report file 
dynamically generated and need to send as an attachment
*In post build task
log text: build as failure
Operation : OR
SCRIPT : antst.sh
*This antst.sh lies in my base directory of workspace
It contains

*#!/bin/sh
ant report
ping -c 10 127.0.0.1
rm -rf results.zip
zip -r results.zip results*


*It is not executing this tasks in shell script when build get failed*

Console output

Match found for :build as failure : True
Logical operation result is TRUE
Running script  : antst.sh

[SeleniumWS] $ /bin/sh -xe /tmp/tomcat6-tmp/hudson4741607362155395778.sh
+ antst.sh
/tmp/tomcat6-tmp/hudson4741607362155395778.sh: 2: 
/tmp/tomcat6-tmp/hudson4741607362155395778.sh: antst.sh: not found
POST BUILD TASK : FAILURE
END OF POST BUILD TASK : 0
Email was triggered for: Failure

Whether ant won't work inside shell script?

Please tell me the issue

Regards,
varghese









*
*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to