I've tried with "Boolean" Condition and it's not working yet... I don't know if the token is right:
<https://lh3.googleusercontent.com/-m86JRxI2llc/Wa6D1i5WqYI/AAAAAAAAALg/rfbXZsVsukUSEUaoiu3pA0y_qgQ1VSI2QCLcBGAs/s1600/Screenshot_20.jpg> It returns this console output: [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 54.479 s [INFO] Finished at: 2017-09-05T12:57:09+02:00 [INFO] Final Memory: 16M/56M [INFO] ------------------------------------------------------------------------ Exception caught evaluating condition: [org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'test_resultados_miniprueba' in '$test_resultados_miniprueba'], action = [Don't run] Finished: SUCCESS What is the error in the condition token? Thanks so much for your time!!!! El martes, 5 de septiembre de 2017, 12:35:27 (UTC+2), Björn Pedersen escribió: > > Hi, > > File exists does not seem to do ant-style expansion, if I look at the > docs. Either specify the correct relative path, or use Files Match. > > Björn > > Am Dienstag, 5. September 2017 11:45:43 UTC+2 schrieb Ana MB: >> >> Ok.... the problem is with the "File exists" Condition, because I've put >> "Always" and I get the message "HI WORLD": >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [INFO] BUILD SUCCESS >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [INFO] Total time: 53.709 s >> >> [INFO] Finished at: 2017-09-05T11:32:57+02:00 >> >> [INFO] Final Memory: 17M/56M >> >> [INFO] >> ------------------------------------------------------------------------ >> >> Run condition [Always] enabling perform for step [Execute shell] >> >> [workspace] $ /bin/sh -xe /tmp/jenkins4771372472076695799.sh >> >> + echo HI WORLD >> >> HI WORLD >> >> Finished: SUCCESS >> >> >> What could be happening with this condition "File exists"? >> >> Thanks so much!!! >> >> >> El martes, 5 de septiembre de 2017, 10:13:56 (UTC+2), Ana MB escribió: >>> >>> Hi guys! >>> >>> I'm using Conditional Steps Plugin in Jenkins and I want to execute >>> commands in the Shell, but it seems not to work. I show you my case: >>> >>> >>> <https://lh3.googleusercontent.com/-C_pX1ZVTgTY/Wa5cR7n4VlI/AAAAAAAAALM/8Sf2GQUbOy0G1oAXqYrGPVoY5UWQQZJsgCLcBGAs/s1600/Screenshot_18.jpg> >>> I try to execute a simply "ECHO HI WORLD", and the console returns the >>> following: >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> [INFO] BUILD SUCCESS >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> [INFO] Total time: 58.289 s >>> >>> [INFO] Finished at: 2017-09-05T09:59:49+02:00 >>> >>> [INFO] Final Memory: 17M/56M >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> [File exists] check if file exists >>> [/Researches/PruebaMail/test-output/test_resultados_miniprueba.csv] >>> >>> Run condition [File exists] preventing perform for step [Execute shell] >>> >>> Finished: SUCCESS >>> >>> >>> And nothing happens, "HI WORLD" doesn't appear anywhere... why?? >>> >>> I'm turning crazy... >>> >>> Thanks so much for your time... >>> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/059a454b-7723-4ce8-9b20-d8bf22cc2534%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
