问题描述
在启动 Sonarqube 扫描仪时,我在 Windows 代理上遇到以下错误。
MSBuild.sonarQube.Runner.exe : The term 'MSBuild.sonarQube.Runner.exe' is not recognized as the name of a cmdlet,function,script file,or operable program. Check the spelling of the name,or if a path was included,verify that the
path is correct and try again.
以下是我在工作流程中使用的命令。
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: powershell
run: |
MSBuild.sonarQube.Runner.exe begin /k:"${{ env.PROJECT_KEY }}" /v:"${{ env.YEAR }}.${{ env.PERIOD }}.${{ env.REVISION }}.${{ github.run_number }}" /n:${{ env.PROJECT_NAME }} /d:sonar.host.url=${{ env.soNARQUBE_HOST_URL }} /d:sonar.login=${{ secrets.soNAR_TOKEN }} /d:sonar.verbose="false"
msbuild ProjectName.sln /p:SkipInvalidConfigurations=true /p:TrackFileAccess=false /p:Configuration=Release /p:Platform="x86"
MSBuild.sonarQube.Runner.exe end /d:sonar.login="${{ secrets.soNAR_TOKEN }}"
有人知道如何解决这个问题吗?请帮忙。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)