2020-02-07 02:21:58 +01:00
|
|
|
# Gradle
|
|
|
|
# Build your Java project and run tests with Gradle using a Gradle wrapper script.
|
|
|
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
|
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
2020-02-07 03:31:20 +01:00
|
|
|
vmImage: 'windows-latest'
|
2020-02-07 02:21:58 +01:00
|
|
|
|
2020-02-07 02:59:27 +01:00
|
|
|
variables:
|
|
|
|
GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle
|
2020-02-07 13:11:55 +01:00
|
|
|
BUILD_NUMBER: $(BuildID)
|
2020-02-07 02:59:27 +01:00
|
|
|
|
2020-02-07 02:21:58 +01:00
|
|
|
steps:
|
2020-02-07 02:59:27 +01:00
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: 'gradle | "$(Agent.OS)"'
|
|
|
|
path: '$(GRADLE_USER_HOME)'
|
|
|
|
restoreKeys: 'gradle'
|
2020-02-07 02:21:58 +01:00
|
|
|
- task: Gradle@2
|
|
|
|
inputs:
|
|
|
|
workingDirectory: ''
|
|
|
|
gradleWrapperFile: 'gradlew'
|
2020-02-07 12:36:42 +01:00
|
|
|
options: '--no-daemon --build-cache'
|
|
|
|
gradleOptions: '-Xmx3072m'
|
2020-02-07 02:21:58 +01:00
|
|
|
javaHomeOption: 'JDKVersion'
|
|
|
|
jdkVersionOption: '1.8'
|
|
|
|
jdkArchitectureOption: 'x64'
|
|
|
|
publishJUnitResults: true
|
|
|
|
testResultsFiles: '**/TEST-*.xml'
|
2020-02-07 13:11:55 +01:00
|
|
|
tasks: 'clean build publish'
|