Skip to content

Commit 567c88b

Browse files
chore: add DevOps build pipeline for S360 security vulnerability scanning (#2592)
* chore: add DevOps build pipeline for S360 security vulnerability scanning Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore: update build pipeline schedule to daily Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore: enable SDL security scanning in build pipeline Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4ce0ec4 commit 567c88b

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.azurepipelines/build.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
trigger: none
2+
pr: none
3+
4+
schedules:
5+
- cron: '0 0 * * *'
6+
displayName: Daily 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+
sdl:
26+
sourceAnalysisPool:
27+
name: Azure-Pipelines-1ESPT-ExDShared
28+
image: windows-2022
29+
os: windows
30+
credscan:
31+
enabled: true
32+
policheck:
33+
enabled: true
34+
binskim:
35+
enabled: true
36+
stages:
37+
- stage: Build
38+
jobs:
39+
- job: Build
40+
displayName: Build Java SDK
41+
steps:
42+
- checkout: self
43+
submodules: recursive
44+
45+
- task: JavaToolInstaller@0
46+
displayName: Set up Java
47+
inputs:
48+
versionSpec: '17'
49+
jdkArchitectureOption: 'x64'
50+
jdkSourceOption: 'PreInstalled'
51+
52+
- script: chmod +x gradlew && ./gradlew assemble
53+
displayName: Build SDK
54+
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)