There is also a quick start guide that can be found here but please be aware that the quick start guide is covering a lot less than the one below. Explanations for each section can be found further below. Before reading that, it is highly recommended to look at the official GitLab Documentation to understand the yml syntax and how the runners work.īelow is a yml script that runs a build job and a test job when merge requests are made to the "version10.0" branch in the repo. ![]() The section after this will show and explain a yml file used to make builds and tests. CET Developer has an issue where it cannot find the correct folders for builds if you do so! Instead, install the runner under the same WINDOWS user account that will be logged in the machine to avoid issues: ![]() The default installation will install the service under the Built-in System Account. Install the runner as a service and start it. When asked for the runner executor, please input shell Put anything you want, you can change it laterįor the tags, put a simple "build" tag for now. The description for the runner will show up in the runner's jobs. You can find your runner registration token under "Settings -> CI/CD -> Runners" in your Gitlab project: In the prompt, go to the folder you created in step 1. Put the downloaded binary into the folder you created in step 1.Download the 64-bit binary for Windows here (v11.11.0 - used for the examples in this wiki page, later versions might not work).We use "C:\Gitlab-Runner" for this example. Create a folder somewhere on the runner machine.CET Developer version on the runner computer should be the latest available and logged into CET Developer with the same Email as Windows. ![]() Administrator access to the runner computer.A computer to use as the runner (our example computer has Windows, CET Developer, and Git Client.Maintainer access to the repository you will be setting up the runner for.This page will show you how to set up a basic runner on Windows using the Shell Executor on Gitlab to make builds and run tests. Workarounds for Slow 'base' Repo Cloning.Using Merge Request Labels as Conditionals.Yml Script Example for Builds and Tests.
0 Comments
Leave a Reply. |