-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild-release-artifacts.yml
More file actions
60 lines (52 loc) · 2.19 KB
/
build-release-artifacts.yml
File metadata and controls
60 lines (52 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 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: none
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- task: Gradle@3
inputs:
# Specifies the working directory to run the Gradle build. The task uses the repository root directory if the working directory is not specified.
workingDirectory: ''
# Specifies the gradlew wrapper's location within the repository that will be used for the build.
gradleWrapperFile: 'gradlew'
# Sets the GRADLE_OPTS environment variable, which is used to send command-line arguments to start the JVM. The xmx flag specifies the maximum memory available to the JVM.
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '$(jdkVersion)'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
tasks: clean assemble
displayName: Assemble durabletask-client and durabletask-azure-functions
# the secring.gpg file is required to sign the artifacts, it's generated from GnuPG, and it's stored in the library of the durabletaskframework ADO
- task: DownloadSecureFile@1
name: gpgSecretFile
displayName: 'Download GPG secret file'
inputs:
secureFile: 'secring.gpg'
- task: Gradle@3
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '$(jdkVersion)'
jdkArchitectureOption: 'x64'
tasks: publish
options: '-Psigning.keyId=$(gpgSignKey) -Psigning.password=$(gpgSignPassword) -Psigning.secretKeyRingFile=$(gpgSecretFile.secureFilePath)'
displayName: Publish durabletask-client and durabletask-azure-functions
- task: CopyFiles@2
displayName: 'Copy publish file to Artifact Staging Directory'
inputs:
SourceFolder: repo/com/microsoft
Contents: '**/*.*'
TargetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@1
name: PublishPipelineArtifact1
displayName: 'Publish Artifact: Build Outputs'
inputs:
ArtifactName: BuildOutputs
TargetPath: $(Build.ArtifactStagingDirectory)