持续集成Yaml脚本在构建阶段失败

时间:2019-07-18 19:08:54

标签: continuous-integration gitlab yaml

尝试运行构建阶段时,尝试识别构建路径变量时会失败

此脚本执行Web应用程序的持续集成,该脚本在Gitlab运行程序中执行。

变量:

SLN_DIR:$ CI_PROJECT_DIR / webapp / MyProject / MyProject.sln

BUILD_PATH:C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ MSBuild \ 15.0 \ Bin \ MSBuild.exe

阶段:   -建立

内部版本:   阶段:构建

脚本:

- echo "building Project..."
- '& "%BUILD_PATH%" /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /property:Platform="Any CPU" /verbosity:detailed "%SLN_DIR%"'

工件:

name: "Build"
paths:
    - "%UNIT_FOLDER%"       
expire_in: 1 day

依赖性:   -努吉特

在Git存储库中,显示的错误如下:

  • &“%BUILD_PATH%” / consoleloggerparameters:ErrorsOnly / maxcpucount / no ...
  • + CategoryInfo          : ObjectNotFound: (%BUILD_PATH%:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    

0 个答案:

没有答案