用于在子目录中构建的 Jenkins sbt 插件配置

Jenkins sbt plugin config for build in subdirectory

我想通过 jenkins sbt 插件构建一个 scala 应用程序。 我项目的 build.sbt 文件不在 git 存储库的根目录中,而是在名为 'webapp'.

的子目录中

我如何在我的 Jenkins 作业中告诉 sbt 它应该在那个子目录而不是工作区根目录中进行构建?

如果您正在使用 "Build using sbt" 构建步骤,那么在 "Actions" 字段下您会找到一个 高级… 按钮。

点击后会显示 "Sub-directory Path" 配置选项,您可以在其中输入 webapp