32 строки
944 B
YAML
32 строки
944 B
YAML
# 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
|
|
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
|
- task: DownloadSecureFile@1
|
|
name: gradleSecret
|
|
displayName: 'Download Gradle secret'
|
|
inputs:
|
|
secureFile: 'gradle.encrypted.properties'
|
|
|
|
- script: |
|
|
mkdir -p $HOME/.gradle && mv $(gradleSecret.secureFilePath) $HOME/.gradle/gradle.encrypted.properties
|
|
|
|
- task: Gradle@2
|
|
inputs:
|
|
gradleWrapperFile: 'gradlew'
|
|
gradleOptions: '-Xmx3072m'
|
|
javaHomeOption: 'JDKVersion'
|
|
jdkVersionOption: '1.8'
|
|
jdkArchitectureOption: 'x64'
|
|
publishJUnitResults: true
|
|
testResultsFiles: '**/TEST-*.xml'
|
|
tasks: 'prepareReleaseResources build publishPlugins'
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: |
|
|
rm -f $HOME/.gradle/gradle.encrypted.properties |