Skip to content

Commit 010eb16

Browse files
authored
Merge pull request #224 from BingAds/1es-migration
1es migration
2 parents 2fce41c + fbd1938 commit 010eb16

File tree

1 file changed

+57
-30
lines changed

1 file changed

+57
-30
lines changed

azure-pipelines.yml

Lines changed: 57 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,60 @@ trigger:
99
pool:
1010
vmImage: windows-latest
1111

12-
steps:
13-
- task: CmdLine@2
14-
inputs:
15-
script: |
16-
echo $(PUB_KEY) | base64 -d > public.key
17-
echo $(SEC_KEY) | base64 -d > private.key
18-
gpg --import public.key
19-
gpg --batch --import private.key
20-
gpg --list-public-keys
21-
- task: Maven@3
22-
inputs:
23-
mavenPomFile: 'pom.xml'
24-
mavenOptions: '-Xmx3072m'
25-
javaHomeOption: 'JDKVersion'
26-
jdkVersionOption: '17'
27-
jdkArchitectureOption: 'x64'
28-
publishJUnitResults: true
29-
testResultsFiles: '**/surefire-reports/TEST-*.xml'
30-
goals: 'package source:jar javadoc:jar gpg:sign checksum:files'
31-
options: '-Dgpg.passphrase=$(PASS_PHRASE)'
32-
- task: CopyFiles@2
33-
inputs:
34-
SourceFolder: '$(Pipeline.Workspace)/s'
35-
Contents: '**/.artifactignore'
36-
TargetFolder: 'target'
37-
- task: PublishPipelineArtifact@1
38-
inputs:
39-
targetPath: target
40-
artifact: 'maven_artifacts'
41-
publishLocation: 'pipeline'
12+
resources:
13+
repositories:
14+
- repository: "WebXT.Pipeline.Templates"
15+
type: git
16+
name: Engineering Fundamentals/WebXT.Pipeline.Templates
17+
ref: refs/heads/main
18+
- repository: AdsAppsYamlTemplate
19+
type: git
20+
name: Bing_Ads/AdsApps_Yaml_Template
21+
ref: refs/heads/master
22+
extends:
23+
template: v1/[email protected]
24+
parameters:
25+
pool:
26+
name: Azure-Pipelines-1ESPT-ExDShared
27+
image: windows-latest
28+
os: windows
29+
sdl:
30+
sourceAnalysisPool:
31+
name: Azure-Pipelines-1ESPT-ExDShared
32+
image: windows-latest
33+
os: windows
34+
stages:
35+
- stage: stage
36+
jobs:
37+
- job: Phase_1
38+
steps:
39+
- task: CmdLine@2
40+
inputs:
41+
script: |
42+
echo $(PUB_KEY) | base64 -d > public.key
43+
echo $(SEC_KEY) | base64 -d > private.key
44+
gpg --import public.key
45+
gpg --batch --import private.key
46+
gpg --list-public-keys
47+
- task: Maven@3
48+
inputs:
49+
mavenPomFile: 'pom.xml'
50+
mavenOptions: '-Xmx3072m'
51+
javaHomeOption: 'JDKVersion'
52+
jdkVersionOption: '17'
53+
jdkArchitectureOption: 'x64'
54+
publishJUnitResults: true
55+
testResultsFiles: '**/surefire-reports/TEST-*.xml'
56+
goals: 'package source:jar javadoc:jar gpg:sign checksum:files'
57+
options: '-Dgpg.passphrase=$(PASS_PHRASE)'
58+
- task: CopyFiles@2
59+
inputs:
60+
SourceFolder: '$(Pipeline.Workspace)/s'
61+
Contents: '**/.artifactignore'
62+
TargetFolder: 'target'
63+
templateContext:
64+
outputs:
65+
- output: pipelineArtifact
66+
displayName: 'Publish Maven Artifacts'
67+
targetPath: target
68+
artifactName: maven_artifacts

0 commit comments

Comments
 (0)