Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pipeline] Migrate to 1ES #1030

Merged
merged 17 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .azurepipelines/build-shared-ios-1ES.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
trigger:
- master
- develop
pr:
- master
- develop
resources:
repositories:
- repository: self
type: git
ref: refs/heads/develop
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
name: $(Build.SourceBranchName)_$(date:yyyyMMdd)$(rev:.r)
variables:
- name: EOCompliance-Mac
value: true
- name: XCODE_PATH
value: /Applications/Xcode_13.2.1.app/Contents/Developer
extends:
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
${{ else }}:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: Azure Pipelines
image: macos-latest
os: macOS
customBuildTags:
- ES365AIMigrationTooling-BulkMigrated
sdl:
sourceAnalysisPool: 1ES-PT-Windows-2022
eslint:
enableExclusions: true
exclusionPatterns: |
TestApp/
TestApp34/
DemoApp/
credscan:
suppressionsFile: $(Build.SourcesDirectory)/.config/CredScanSuppressions.json
stages:
- stage: stage
jobs:
- job: sdkBuildJob
displayName: MacOs
cancelTimeoutInMinutes: 1
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Artifact: framework'
path: '$(Build.ArtifactStagingDirectory)'
artifactName: zip
steps:
- checkout: self
fetchTags: false
- task: Bash@3
displayName: Install AppCenterReactNativeShared Pods
inputs:
filePath: AppCenterReactNativeShared/ios/post-clone.sh
workingDirectory: AppCenterReactNativeShared/ios
- task: Bash@3
displayName: Select Xcode $(XCODE_PATH)
inputs:
targetType: inline
script: sudo xcode-select -s '$(XCODE_PATH)'
- task: Bash@3
displayName: Build xc-framework
inputs:
targetType: inline
script: |
export SRCROOT=`pwd`
./build-xcframework.sh
workingDirectory: AppCenterReactNativeShared/ios/
- task: Bash@3
displayName: Zip framework
inputs:
filePath: AppCenterReactNativeShared/zip-framework.sh
workingDirectory: AppCenterReactNativeShared
- task: CopyFiles@2
displayName: Copy artifact
inputs:
SourceFolder: $(Build.SourcesDirectory)/AppCenterReactNativeShared/Products/
Contents: AppCenter-SDK-ReactNative-iOS-Pod-*.zip
TargetFolder: $(Build.ArtifactStagingDirectory)
22 changes: 22 additions & 0 deletions .config/CredScanSuppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tool": "Credential Scanner",
"suppressions": [
{
"file": "/DemoApp/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
},
{
"file": "/TestApp/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
},
{
"file": "/TestApp34/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
},
{
"file": "/TestAppTypescript/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
}
]
}

Loading