【问题标题】:bash run sbt test returns errorbash run sbt test 返回错误
【发布时间】:2018-08-18 03:29:43
【问题描述】:

我有一个 playframework 应用程序,我想在其中使用 jenkins 运行测试。我有以下脚本:

rm -rf /opt/processes/*
cp -R $WORKSPACE/ /opt/processes/
cd /opt/processes/
sbt testOnly controllers.ProcessesTemplatesControllerSpec

在我的 Windows 机器上本地运行良好。

但在詹金斯我得到了这个错误:

No sbt.version set in project/build.properties, base directory: /opt/processes
Passed: Total 0, Failed 0, Errors 0, Passed 0
Not a valid command: controllers

jenkins在ubuntu下运行

我的问题可能是什么?

提前致谢

【问题讨论】:

    标签: ubuntu jenkins playframework sbt


    【解决方案1】:

    sbt 命令行将空格分隔的参数解释为单独的命令。引用它们以作为单个命令传递:

    sbt 'testOnly controllers.ProcessesTemplatesControllerSpec'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-17
      • 1970-01-01
      • 2021-03-02
      • 2020-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多