maven - 如何在GoCD中建立Maven项目?

标签 maven continuous-integration go-cd

我之前曾与 Jenkins 合作过。但我们现在转向了 GoCD。我想定期运行一个简单的 Maven 项目以进行回归测试。

最佳答案

根据他们的support forum :

You can use maven and Go together by using the "exec" builder of cruise.

Please do the following to set up maven with Go:

  1. Create a batch file(If you are on windows, else, .sh file) with the maven command you want to run through Go.
  2. While setting up the pipeline, choose "exec" as your builder and give the batch file name (created in step 1) and the parameters, if any.

Go recognizes build tools like ant, rake and nant; any other build tool can be integrated with cruise using the "exec" builder where you call the build commands through a batch file.

关于maven - 如何在GoCD中建立Maven项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58324369/

相关文章:

docker - 在 QNAP 中运行 GOCD docker 容器时出现 java.net.UnknownHostException

maven - 如何修复 maven 错误 JAVA_HOME 环境变量未正确定义?

spring - 组件扫描不扫描子包

java - 将 PDF 转换为 PNG (tess4j) - 本地工作正常,但在服务器 JBoss 中不工作

testing - 质量检查阶段的新提交

java - 使用eclipse和maven的不同版本的war文件

continuous-integration - 将数组作为输入传递给 Azure DevOps YAML 任务

reactjs - 将警告视为错误,因为 process.env.CI = true。编译失败

ios - xcode-命令行生成-平台watchOS所需的内容丢失了IBBuildSupport