Is the forking git workflow used outside of open source projects?
-
Here is the https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow if you're not familiar with it.
The company I work for is mostly comprised of historically open source developers. This has caused them to be stuck on the forking workflow and they're not extremely willing to move to the github flow. Since there's no support for Jenkins to pick up forks of a repo on stash, build and test automation is very awkward and doesn't really work. My question is: Is there a standard way of supporting the forking workflow, or is it just not realistic for a team to develop this way?
I would really like to move away from the forking workflow, but I have yet to see other companies utilize it. If there's a good way to support it then that would be fine. I just don't know what that would look like from a DevOps perspective. Separating into isolated forks doesn't seem to be as productive and working on a single repo together.
-
Maybe you can use a Webhook to read information from the repository. So that way you can access dynamic information such as the repository URL where to look the code, and even create or loaunch specifics Jobs for each Repo.
https://plugins.jenkins.io/generic-webhook-trigger/ Support passing parameters.
I guess it's not the best solution, because it involves configuring each Git repository, but it's quite powerful and dynamic.
I hope you can find a good solution