Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit c495ed4

Browse files
[Pipeline] Migrate to 1ES (#2674)
* Initial template * Update name * Remove build phase * Add baseiines * Add baselines * Resolive comments * Resolve comments
1 parent 5ea2296 commit c495ed4

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
trigger:
2+
- master
3+
4+
pr:
5+
- master
6+
7+
resources:
8+
repositories:
9+
- repository: 1ESPipelineTemplates
10+
type: git
11+
name: 1ESPipelineTemplates/1ESPipelineTemplates
12+
ref: refs/tags/release
13+
name: $(Build.SourceBranchName)_$(date:yyyyMMdd)$(rev:.r)
14+
15+
extends:
16+
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
17+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
18+
${{ else }}:
19+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
20+
parameters:
21+
pool:
22+
name: 1ES-PT-CBL-Mariner-2.0-Gen2
23+
os: linux
24+
customBuildTags:
25+
- ES365AIMigrationTooling-BulkMigrated
26+
sdl:
27+
sourceAnalysisPool: 1ES-PT-Windows-2022
28+
credscan:
29+
suppressionsFile: $(Build.SourcesDirectory)/.config/CredScanSuppressions.json
30+
stages:
31+
- stage: Stage
32+
jobs:
33+
- job: HostJob
34+
templateContext:
35+
outputs:
36+
- output: pipelineArtifact
37+
displayName: "Publish Artifact: artifacts"
38+
path: '$(Build.ArtifactStagingDirectory)/npm'
39+
artifactName: npm
40+
41+
steps:
42+
- task: NodeTool@0
43+
inputs:
44+
versionSpec: '14.x'
45+
displayName: 'Install Node.js'
46+
47+
- script: |
48+
npm pack
49+
npm install -g react-native-code-push*.tgz
50+
displayName: 'Package react-native-code-push'
51+
workingDirectory: $(Build.SourcesDirectory)
52+
53+
- task: DeleteFiles@1
54+
inputs:
55+
contents: node_modules
56+
displayName: 'Delete node_modules'
57+
58+
- task: ArchiveFiles@2
59+
inputs:
60+
rootFolderOrFile: '$(Build.SourcesDirectory)'
61+
includeRootFolder: false
62+
archiveType: 'tar'
63+
archiveFile: '$(Build.ArtifactStagingDirectory)/npm/$(Build.BuildId).tgz'
64+
replaceExistingArchive: true
65+
verbose: true
66+
displayName: 'Prepare npm artifact'

.config/CredScanSuppressions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"tool": "Credential Scanner",
3+
"suppressions": [
4+
{
5+
"file": "/Examples/CodePushDemoApp/android/app/debug.keystore",
6+
"_justification": "Used only in DemoApp"
7+
},
8+
{
9+
"file": "/Examples/CodePushDemoAppCpp/windows/CodePushDemoAppCpp/CodePushDemoAppCpp_TemporaryKey.pfx",
10+
"_justification": "Used only in DemoApp"
11+
}
12+
]
13+
}
14+

0 commit comments

Comments
 (0)