标签: slather

Slather 命令无法执行。Xcode,詹金斯,声纳qube

+ 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 sonarqube jenkins-pipeline slather

6
推荐指数
0
解决办法
785
查看次数

标签 统计

jenkins ×1

jenkins-pipeline ×1

slather ×1

sonarqube ×1

xcode ×1