Condition loops in gitlab-ci.yml


#1

how to add an IF statement as a ‘- script:’ block step of a job?


#2

Hi,

The -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. :slight_smile: