I have a bash script as below: ------------------------------
#!/bin/bash
VAR_A=$(echo "cat //artifact/fileName" | xmllint --shell BuildResult.xml | sed '/^/ >/d' | sed 's/<[^>]*.//g' | tr -d 'n' | awk -F"-------" '{print $3}')
echo $VAR_A
------------------------------
I have jenkins installed on a windows machine and via cygwin openssh, I am coecting to the suse linux machine in which this script is residing.
When I am calling the above script via an ANT sshexec command configured in Jenkins, it is ruing ok but no output.
On the other hand, when I am ruing the same script from within the SUSE Linux system, it is echoing current result.
I am not able to figure the root cause and respective fix. Checked the shell in suse linux and it is set to /bin/bash system wide.
Please help.
It is urgent.
Thanks. Nishant
