.\gitlab-runner.exe stop .\gitlab-runner.exestart 报错二: Running with gitlab-runner 17.9.0 (c4cbe9dd) on lym t3_B1Nd5, system ID: s_b41fe35ab3ce Preparing the "shell" executor00:00 Using Shell (powershell) executor... Preparing environment00:02 Running on NJZF--NFPPPONVV... ...
The Shell executor is a simple executor that you use to execute builds locally on the machine where GitLab Runner is installed. It supports all systems on which the Runner can be installed. That means that it’s possible to use scripts generated for Bash, PowerShell Core,WindowsPowerShell, ...
--description "Shared Runner" --tag-list "shared" --executor "shell" 启动并管理GitLab Runner 1. 启动服务 对于Linux系统,使用systemd来管理GitLab Runner服务: sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner sudo gitlab-runner start 2. 验证安装 检查GitLa...
对于手动安装,gitlab-runner-helper二进制文件不包括在其中,对于kubernetes executor, kubernetes的API不允许从本地存档加载gitlab-runner-helper映像。在这两种情况下,GitLab Runner都将从Docker Hub (GitLab的官方存储库GitLab / GitLab -run -helper)下载帮助器映像,方法是使用Runner的修订和架构来定义应该下载哪个...
winget install Microsoft.PowerShell 如果嫌弃 winget 输入太慢,可以从他的输出里面找到 PowerShell 的下载地址,换个快速的下载器去下载即可 输入以上命令之后,相信你看界面就会了 第二个方法就是将pwsh修改为powershell代码,编辑 gitlab-runner.exe 所在文件夹下的 config.toml 文件,将里面的pwsh修改为powershell如...
token_expires_at = 0001-01-01T00:00:00Z executor = "shell" shell = "powershell" // 只需要关键这句话就可以了。原本是 `shell = "pwsh"` 这句话 1. 2. 3. 4. 5. 6. 7. 8. 两个方法选一个即可,我比较推荐使用第一个方法
GitLab Runnersupports certain shells. To select a shell, specify it in yourconfig.tomlfile. For example: ... [[runners]] name = "shell executor runner" executor = "shell" shell = "powershell" ... Security Generally it’s unsafe to run tests with shell executors. The jobs are run wit...
shell,runnertest2_shell Enter optional maintenance note for the runner: shell for runnertest2 Registering runner... succeeded [0;m runner[0;m=gghjkkll... Enter an executor: ssh, virtualbox, kubernetes, custom, docker, docker-windows,parallels, instance, docker-ssh, shell, docker+machine, docke...
打开命令提示符(CMD)或PowerShell,切换到GitLab Runner的安装目录。执行以下命令,将Runner注册到GitLab上: gitlab-runner.exe register --tls-ca-file ca.crt --url https://your-gitlab-url --token your-runner-token --executor shell --shell powershell 请将上述命令中的https://your-gitlab-url替换...
最后选择excutor:我这里选的是shell. 可选项如下:Enter an executor: virtualbox, docker-ssh+machine, kubernetes, custom, docker-windows, docker-ssh, shell, docker, parallels, ssh, docker+machine 注册成功!这时候服务gitlab runner 应该已经启动了 ...