有人可以提供 yaml 文件的模板来从 Java maven 项目触发 azure 管道吗?
我已经知道如何从 azure deveos 创建管道。但是每次创建新分支时,我都需要从框架触发管道
有人可以提供 yaml 文件的模板来从 Java maven 项目触发 azure 管道吗?
我已经知道如何从 azure deveos 创建管道。但是每次创建新分支时,我都需要从框架触发管道
您可以使用以下 yaml 文件从 Java maven 项目触发 azure 管道:
#Maven
#Build your Java project and run tests with Apache Maven.
#Add steps that analyze code, save build artifacts, deploy, and more:
#https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- {{ branch }}
pool:
{{ pool }}
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'