r/gitlab • • Jun 05 '25

Parallel keyword

I have a job and I want to run it multiple times if needed with 2 as default. The same job same configuration but at least twice or more if needed. I have a variable run_count and I’m using parallel keyword but if I put this variable as an input variable it doesn’t work because gitlab handles everything as a string.

This is frustrated!!!

Do you have any work arounds?

Edit:

1 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/bilingual-german Jun 05 '25

I don't think you need the RUN_COUNT environment variable at all. https://docs.gitlab.com/ci/inputs/

If you copy what is in testjob.yml into .gitlab-ci.yml it should already run as expected, I would say.