Skip to content

Commit 0ef8a3a

Browse files
authored
initial 1ES migration (#198)
1 parent ea34c5c commit 0ef8a3a

File tree

4 files changed

+92
-6
lines changed

4 files changed

+92
-6
lines changed

azurefunctions/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ publishing {
7676
}
7777
}
7878

79-
signing {
80-
sign publishing.publications.mavenJava
81-
}
79+
// TODO: manual signing temporarily disabled, in favor of 1ES signing utils
80+
//signing {
81+
// sign publishing.publications.mavenJava
82+
//}
8283

8384
java {
8485
withSourcesJar()

client/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ publishing {
146146
}
147147
}
148148

149-
signing {
150-
sign publishing.publications.mavenJava
151-
}
149+
// TODO: manual signing temporarily disabled, in favor of 1ES signing
150+
//signing {
151+
// sign publishing.publications.mavenJava
152+
//}
152153

153154
java {
154155
withSourcesJar()

eng/ci/official-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
variables:
2+
- template: ci/variables/cfs.yml@eng
3+
4+
trigger:
5+
batch: true
6+
branches:
7+
include:
8+
- main
9+
10+
# CI only, does not trigger on PRs.
11+
pr: none
12+
13+
resources:
14+
repositories:
15+
- repository: 1es
16+
type: git
17+
name: 1ESPipelineTemplates/1ESPipelineTemplates
18+
ref: refs/tags/release
19+
- repository: eng
20+
type: git
21+
name: engineering
22+
ref: refs/tags/release
23+
24+
extends:
25+
template: v1/1ES.Official.PipelineTemplate.yml@1es
26+
parameters:
27+
pool:
28+
name: 1es-pool-azfunc
29+
image: 1es-windows-2022
30+
os: windows
31+
32+
stages:
33+
- stage: BuildAndSign
34+
dependsOn: []
35+
jobs:
36+
- template: /eng/templates/build.yml@self

eng/templates/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
jobs:
2+
- job: Build
3+
4+
templateContext:
5+
outputs:
6+
- output: pipelineArtifact
7+
path: $(build.artifactStagingDirectory)
8+
artifact: drop
9+
sbomBuildDropPath: $(System.DefaultWorkingDirectory)
10+
sbomPackageName: 'Durable Task / Durable Functions Java SBOM'
11+
12+
steps:
13+
- checkout: self
14+
submodules: true
15+
16+
- task: Gradle@3
17+
inputs:
18+
# Specifies the working directory to run the Gradle build. The task uses the repository root directory if the working directory is not specified.
19+
workingDirectory: ''
20+
# Specifies the gradlew wrapper's location within the repository that will be used for the build.
21+
gradleWrapperFile: 'gradlew'
22+
# 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.
23+
gradleOptions: '-Xmx3072m'
24+
javaHomeOption: 'JDKVersion'
25+
jdkVersionOption: 1.11
26+
jdkArchitectureOption: 'x64'
27+
publishJUnitResults: false
28+
tasks: clean assemble
29+
displayName: Assemble durabletask-client and durabletask-azure-functions
30+
31+
# TODO: add 1ES-level signing
32+
- task: Gradle@3
33+
inputs:
34+
workingDirectory: ''
35+
gradleWrapperFile: 'gradlew'
36+
gradleOptions: '-Xmx3072m'
37+
javaHomeOption: 'JDKVersion'
38+
jdkVersionOption: 1.11
39+
jdkArchitectureOption: 'x64'
40+
tasks: publish
41+
displayName: Publish durabletask-client and durabletask-azure-functions
42+
43+
- task: CopyFiles@2
44+
displayName: 'Copy publish file to Artifact Staging Directory'
45+
inputs:
46+
SourceFolder: $(System.DefaultWorkingDirectory)/repo/com/microsoft
47+
Contents: '**/*.*'
48+
TargetFolder: $(Build.ArtifactStagingDirectory)

0 commit comments

Comments
 (0)