Skip to content

Commit 614b652

Browse files
chore: add DevOps build pipeline for S360 security vulnerability scanning
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4a27304 commit 614b652

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.azurepipelines/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
trigger: none
2+
pr: none
3+
4+
schedules:
5+
- cron: '0 0 * * 1,3'
6+
displayName: Monday and Wednesday builds
7+
branches:
8+
include:
9+
- main
10+
always: true
11+
12+
resources:
13+
repositories:
14+
- repository: 1ESPipelineTemplates
15+
type: git
16+
name: 1ESPipelineTemplates/1ESPipelineTemplates
17+
ref: refs/tags/release
18+
19+
extends:
20+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
21+
parameters:
22+
pool:
23+
name: Azure-Pipelines-1ESPT-ExDShared
24+
os: linux
25+
stages:
26+
- stage: Build
27+
jobs:
28+
- job: Build
29+
displayName: Build Java Core SDK
30+
steps:
31+
- checkout: self
32+
submodules: recursive
33+
34+
- task: JavaToolInstaller@0
35+
displayName: Set up Java
36+
inputs:
37+
versionSpec: '17'
38+
jdkArchitectureOption: 'x64'
39+
jdkSourceOption: 'PreInstalled'
40+
41+
- script: chmod +x gradlew && ./gradlew assemble
42+
displayName: Build SDK
43+
workingDirectory: $(Build.SourcesDirectory)
44+
45+
- script: ./gradlew test
46+
displayName: Run unit tests
47+
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)