Page History
...
This works for all types of LANSA technologies.
Presumed Knowledge
First some set up is required. It requires manual configuration. As such you require some skills in using Git, GitLab, and the Windows command line to configure it correctly. If you are an existing GitLab user it should not be difficult for you to do this successfully.
Overview
Its presumed that you are already using a Visual LANSA IDE configured as a VCS Master for all your developers and you have setup a build machine in a similar fashion. So all that needs to be done is to install and configure a GitLab runner.
Summary of Steps
Here is a summary of the steps involved. Click on the links for more detail:
On the build machine, Install the GitLab Runner.
On GitLab web site, Configure GitLab Runner Server Settings.
On a Developer's machine Configure the GitLab Runner's repository in the source code repository and commit and push the changes.
Check on the GitLab web site that the CI/CD pipeline is flagged as passed.
Close any open Git Bash command line windows. They may interfere with the GitLab Runner.
The system is ready to be used.
Install the GitLab Runner
Now you need to download and configure the GitLab Runner.
...
| Info |
|---|
| When registering the runner, use this command line: .\gitlab-runner.exe register --non-interactive --url "https://gitlab.com" --registration-token "<your project token" --executor "shell" --shell "powershell" --tag-list "master" --run-untagged When installing the gitlab-runner, you may find it easiest to specify the user that's logged in when the Visual LANSA IDE is running so that that user's git security is used. |
Configure GitLab Runner Server Settings
Now, if you go to your repository on GitLab, access "Settings > CI/CD" and expand the "Runners settings" you are able to see your runner already assigned to your project. If the green circle is not showing its probably because you haven't started the Runner on the Target System.
Beside the Specific Runners section, click on Disable shared Runners.
...
LANSA_PARTITION is the partition identifier.
Configure the GitLab Runner's repository
This step provides the configuration file for the GitLab Runner. It is automatically performed when the Git repository is created through the Visual LANSA IDE. Only perform this step if the Git repository was created from the Windows command line or using a third party tool.
...

