首页 > 系统相关 >Windows中Gitlab Runner的配置:shell = "powershell"

Windows中Gitlab Runner的配置:shell = "powershell"

时间:2024-04-13 23:14:21浏览次数:21  
标签:shell Windows Gitlab Runner token powershell

摘要

这是在Windows中摸索Gitlab Runner的第一个坑:默认的值是“pwsh”。

1、网上有人说,删除这一行

或者改为

shell = ""

这样就会造成流水线无法获取到.gitlab-ci.yml中定义的变量。

正确做法

shell = "powershell"

本文在说什么?

说的是toml文件,完整展示如下:

concurrent = 1
check_interval = 0
connection_max_age = "15m0s"
shutdown_timeout = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "Alice-WIndows-11"
  url = "https://gitlab.********.cn"
  id = 37
  token = "********-******************"
  token_obtained_at = 2024-04-11T16:39:42Z
  token_expires_at = 0001-01-01T00:00:00Z
  executor = "shell"
  shell = "powershell"
  [runners.cache]
    MaxUploadedArchiveSize = 0

未完待续……

标签:shell,Windows,Gitlab,Runner,token,powershell
From: https://www.cnblogs.com/amisoft/p/18133538/gitlab-runner-windows-shell-value

相关文章

  • Control Panel Command Line Commands in Windows
    CMDCommandsforControlPanelAppletsAppletCommandOSVersionAccessibilityOptionscontrolaccess.cplXPActionCentercontrol/nameMicrosoft.ActionCenter8,7 controlwscui.cpl8,7AddFeaturestoWindows8control/nameMicrosoft.Win......
  • 在Windows中使用Linux子系统
    摘要本文描述如何在Windows11中使用Ubuntu。安装1、打开Windows可选功能2、安装Linux的内核补丁https://learn.microsoft.com/zh-cn/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package3、安装Linux子系统在“Windows应用商店”里就能找......
  • 在Linux中,如何使用shell脚本进行系统监控和报告?
    在Linux中,使用shell脚本进行系统监控和报告是一种自动化管理任务的有效方法。脚本可以定期收集系统的关键信息,生成报告,并在发现问题时通知管理员。以下是创建这样一个脚本的基本步骤:1.确定监控目标首先,确定你需要监控的系统指标,如CPU使用率、内存使用、磁盘空间、网络流量、服......
  • 设置 Windows Media Player 推荐设置的注册表文件
    设置WindowsMediaPlayer推荐设置的注册表文件示例:plaintextCopyCodeWindowsRegistryEditorVersion5.00[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]"AcceptSearch"=dword:00000001"AcceptedEULA"=dword:00000001"Accepte......
  • 11、操作系统安全加固-Windows 加固
    1.账号管理与认证授权1.1.按用户类型分配账号目的:根据系统要求,设定不同账户和组,管理员、数据库sa、审计用户、来宾用户等实施方法:打开本地用户和计算机管理器或 打开运行,输入lusrmgr.msc右击账户->属性->更改隶属于右击功能组->属性->成员1.2.清理......
  • 在 Windows10 中使用 WSL2
    安装必备的功能使用win+i打开设置,依次点击应用→应用与功能→程序和功能→启用或关闭Windows功能勾选适用于Linux的Windows子系统与虚拟机平台确定并且重启配置组合键win+r输入powershell打开PowerShell窗口执行下面的命令设置为wsl2wsl--set-def......
  • Adobe Illustrator 2024 v28.4.1 (macOS, Windows) - 矢量绘图
    AdobeIllustrator2024v28.4.1(macOS,Windows)-矢量绘图Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD请访......
  • Adobe Lightroom Classic v13.2 (macOS, Windows) - 桌面照片编辑
    AdobeLightroomClassicv13.2(macOS,Windows)-桌面照片编辑Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD......
  • Adobe Acrobat Pro DC 2024 (macOS, Windows) - 创建、转换和编辑 PDF
    AdobeAcrobatProDC2024(macOS,Windows)-创建、转换和编辑PDFAdobeAcrobatPDFsoftware请访问原文链接:https://sysin.org/blog/adobe-acrobat/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.orgAcrobat:创建、转换和编辑PDF借助Acrobat实现各种文件创建P......
  • Adobe Animate 2024 v24.0.2 (macOS, Windows) - 动画制作
    AdobeAnimate2024v24.0.2(macOS,Windows)-动画制作Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD请访问原......