how to add an IF statement as a ‘- script:’ block step of a job?
-script block will execute whatever command is passed to it - if the shell the command is being passed to supports IF statements, then this will work.
Can you provide more insight as to what you are trying to accomplish? If you can shed some light on this, then there may be a better solution already available.
thank you. all clear