Condition loops in gitlab-ci.yml

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

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:

1 Like

thank you. all clear

1 Like