How to mark the build as failure after SSH timeout in Jenkins? -


currently if run pre-build step (which makes backup...) on ssh , when times-out marks build unstable continues build - bad in case!

this see in log:

error: exception when publishing, exception message [exec timed out or interrupted after 120 022 ms]

build step 'send files or execute commands on ssh' changed build result unstable

so question - how stop build on timeout?

after testing decided install text-finder plugin. after ssh executed added conditional step text finder setup following:

text finder setup ssh failure

my current regexp different now:

(\[error\]|error: exception when publishing) 

this because noticed doing exit 1 in ssh shell doesn't make jenkins fail. catch "[error]" echo out on error. note commands run on ssh shown in log, if similar, you're echo code have similar this: echo "[""error]".


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -