I'm having problem with using build condition: "if script evaluate true". What I try to do is launch build as soon as one of the folder contain specific file. I tried to use execution of powershell script but it is constantly failing to evaluate it.
Script:
util.execute("C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe \"D:\checkifDeploymentExists.ps1" \"D:\_Deployment\"") == 1
Error message:
Failed to evaluate below expression:
mvel:util.execute("C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe \"D:\checkifDeploymentExists.ps1" \"D:\_Deployment\"") == 1
Same problem happens if I try to read file name as string and compare it to NULL value.