使用Gitlab CI/CD运行命令批处理文件



使用Gitlab CI/CD运行命令批处理文件。

我的系统中本地存储了一个批处理文件。现在我想从GitLab CI/CD YAML文件中运行它。我使用以下格式运行YAML

Windows:
script:
- call: ciCheckStatus.bat init
- call: ciCheckStatus.bat build
tags:
- windows

但它给了我以下错误

Found errors in your .gitlab-ci.yml:
jobs:windows:script config should be a string or an array containing strings and arrays of strings

如何解决此问题并调用我的批处理文件来执行。

脚本下没有call关键字,所以只需输入本地使用的可执行命令即可:

Windows:
script:
- ciCheckStatus.bat init
- ciCheckStatus.bat build
tags:
- windows

最新更新