-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.yml
More file actions
47 lines (42 loc) · 1.97 KB
/
build.yml
File metadata and controls
47 lines (42 loc) · 1.97 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
jobs:
- job: Build
templateContext:
outputs:
- output: pipelineArtifact
path: $(build.artifactStagingDirectory)
artifact: drop
sbomBuildDropPath: $(System.DefaultWorkingDirectory)
sbomPackageName: 'Durable Task / Durable Functions Java SBOM'
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: 1.11
jdkArchitectureOption: 'x64'
publishJUnitResults: false
tasks: clean assemble
displayName: Assemble durabletask-client and durabletask-azure-functions
# TODO: add 1ES-level signing
- task: Gradle@3
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: 1.11
jdkArchitectureOption: 'x64'
tasks: publish
displayName: Publish durabletask-client and durabletask-azure-functions
- task: CopyFiles@2
displayName: 'Copy publish file to Artifact Staging Directory'
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)/repo/com/microsoft
Contents: '**/*.*'
TargetFolder: $(Build.ArtifactStagingDirectory)