You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have a main repo say project.git. I have a self hosted Windows runner setup to monitor changes to this repo and kick off a build. It has been working great.
I forked the repo to say joe.git. I want to test my changes in joe.git before promoting them to project.git with a pull request. I want to reuse the runner setup for project.git. I don't see any option for my fork to reuse the runner that was already setup for project.git. The only option is to add a new runner for the fork; start it and then commit changes.
Don't you think it is unnecessary?
Wondering if there is any trick to make main repo runners available to forks...
Hey @Video Guy ,
Thank you for reaching out to Atlassian Community!
Just to give you a background, you can create runners at both the repository and workspace level. Repository level runners will be only available for the repo where they were created. Workspace runners are available to be used by all the repositories within the workspace.
So in this case, if the forked repository is in the same workspace as the main repository, you can create your runners at the workspace level, so the runners will be available to be used both in the main and forked repo, without the need to create one runner per repository.
To create a workspace runner you can follow the below steps :
Once the runner is created, all the pipeline steps from repositories in that workspace that have labels matching the runner's labels will be able to use it.
More details are outlined in the following documentation :
Hope that helps!
Thank you, @Video Guy .
I followed your instructions and added a runner to the main project workspace. I rerun a build and I see it getting built on the workspace runner.
Then I moved to my fork repository. I found that it belongs to completely different workspace. I don't see any method to move my fork to main repo's workspace. And the workspace runner is not listed in fork's runners page.
What am I doing wrong?
Hello @Video Guy ,
The workspace runners are only available to be used by repositories within the same workspace where the runners were created. When you create a forked repository, you have the option to choose in which workspace the fork will be created, so you need to select the workspace where you have the runners set up.
If you want to move an already existing fork repository from a different workspace to the workspace where you have the runners, you can do it by using the feature Transfer repositories to a workspace.