-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea34c5c
commit e6ff587
Showing
4 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
variables: | ||
- template: ci/variables/cfs.yml@eng | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- main | ||
|
||
# CI only, does not trigger on PRs. | ||
pr: none | ||
|
||
resources: | ||
repositories: | ||
- repository: 1es | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
- repository: eng | ||
type: git | ||
name: engineering | ||
ref: refs/tags/release | ||
|
||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1es | ||
parameters: | ||
pool: | ||
name: 1es-pool-azfunc | ||
image: 1es-windows-2022 | ||
os: windows | ||
|
||
stages: | ||
- stage: BuildAndSign | ||
dependsOn: [] | ||
jobs: | ||
- template: /eng/templates/build.yml@self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
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 | ||
submodules: true | ||
|
||
- 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) |