And*_*rew 6 xcode jenkins sonarqube jenkins-pipeline slather
+ slather coverage --binary-basename Project --input-format profdata -i '.*Tests.*' --cobertura-xml --output-directory sonar-reports --workspace Project.xcworkspace --scheme ProjectTests Project.xcodeproj
ERROR: Unrecognised option '--workspace'
See: 'slather coverage --help'
+ returnValue=1
+ set +x
ERROR - Command 'slather coverage --binary-basename Project --input-format profdata -i .*Tests.* --cobertura-xml --output-directory sonar-reports --workspace Project.xcworkspace --scheme ProjectTests Project.xcodeproj'
failed with error code: 1
Run Code Online (Sandbox Code Playgroud)
我指定的参数如下。
workspaceFile=''; readParameter workspaceFile 'sonar.swift.workspace'
slatherCmd+=( --input-format profdata $excludedCommandLineFlags --cobertura-xml --output-directory sonar-reports)
if [[ ! -z "$workspaceFile" ]]; then
echo "$workspaceFile"
slatherCmd+=( --workspace $workspaceFile)
Run Code Online (Sandbox Code Playgroud)
在声纳 project.properties 中,我提到了工作区。
使用 Xcode、Jenkins 和 Sonar Qube 时出现此错误。命令可能有什么问题?我错过了什么?Slather 安装在 mac 中,在运行 Xcode 之前我需要设置什么吗?
我尝试安装 Slather,但我不知道为什么它会显示。
| 归档时间: |
|
| 查看次数: |
785 次 |
| 最近记录: |