问题
I used to have a project on github with a travis and an appveyor integration service configured. Thus I was able to make sur my project was compiling ok on both OSX and Windows plateform.
I'm now working with gitlab and ci runners. I have two runners configured:
- One on a OSX machine
- One on a Windows machine
Unfortunately when I add both runners in my project settings > CI/CD > Runners settings, only one is triggered upon push (the OSX one).
If I disable the OSX runner, the Windows runner is triggered fine.
回答1:
One Job is only running by one runner.
I guess you want that your Job is running twice
- on your windows runner
- on your osx runner
To do so
- Tag your runners (e.g.
winandmac) - duplicate your job for the same stage and add for your windows runner job the
wintag and for your mac runner job themactag.
This should take care that both runners will run the job in the next pipeline.
stages:
- build
mac_build:
stage: build
tags:
- mac
script:
- something ...
win_build:
stage: build
tags:
- win
script:
- something ...
来源:https://stackoverflow.com/questions/49198663/two-gitlab-ci-runners-for-one-project