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...
Thanks
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 .
Kind regards,
Patrik S
Thanks Patrik!
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?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Kind regards,
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.