Executing a part of the script in yml depending on the firstfour characters of the CI_PROJECT_NAME

I want to execute a part of the script in my .yml if the first four characters of the CI variable CI_PROJECT_NAME are abcd. Can anyone help me on how to do that?

Thanks
Samjellear

1 Like

@atanejajlr welcome to the forum!

You can use regular expressions in rules:if to run a job selectively within a pipeline in your project.

I hope this helps!

-James H, GitLab Product Manager, Verify:Pipeline Execution

3 Likes

Thanks

3 Likes

huh i never would have thought of that. good job

1 Like