11# It is expected that a `latestStableBranch` variable is set in the pipeline's settings:
2- # https://dev.azure.com/ms/react-native /_apps/hub/ms.vss-build-web.ci-designer-hub?pipelineId=221
2+ # https://dev.azure.com/office/ISS /_apps/hub/ms.vss-build-web.ci-designer-hub?pipelineId=18541
33
44# This file defines the build steps to publish a release
55name : $(Date:yyyyMMdd).$(Rev:.r)
@@ -18,14 +18,23 @@ pr: none
1818
1919variables :
2020 - template : variables/vars.yml
21+ - group : React-native-macos Secrets
22+ - group : InfoSec-SecurityResults
23+ - name : tags
24+ value : production,externalfacing
2125
2226jobs :
2327 - job : RNGithubNpmJSPublish
2428 displayName : React-Native GitHub Publish to npmjs.org
2529 pool :
2630 vmImage : $(VmImageApple)
31+ variables :
32+ - name : BUILDSECMON_OPT_IN
33+ value : true
2734 timeoutInMinutes : 90 # how long to run the job before automatically cancelling
2835 cancelTimeoutInMinutes : 5 # how much time to give 'run always even if cancelled tasks' before killing them
36+ dependsOn :
37+ - Compliance
2938 steps :
3039 - checkout : self # self represents the repo where the initial Pipelines YAML file was found
3140 clean : true # whether to fetch clean each time
@@ -111,17 +120,18 @@ jobs:
111120 BUILD_STAGINGDIRECTORY : $(Build.StagingDirectory)
112121 BUILD_SOURCEBRANCH : $(Build.SourceBranch)
113122 SYSTEM_ACCESSTOKEN : $(System.AccessToken)
114- githubApiToken : $(githubApiToken )
123+ githubApiToken : $(githubAuthToken )
115124 condition : and(succeeded(), ne(variables['Build.SourceBranchName'], 'main'))
116125
117126
118127 - job : RNMacOSInitNpmJSPublish
119128 displayName : react-native-macos-init Publish to npmjs.org
120- pool :
121- vmImage : $(VmImageUbuntu)
129+ pool : Azure-Pipelines-EO-Ubuntu20.04-Office
122130 timeoutInMinutes : 90 # how long to run the job before automatically cancelling
123131 cancelTimeoutInMinutes : 5 # how much time to give 'run always even if cancelled tasks' before killing them
124132 condition : eq(variables['Build.SourceBranchName'], 'main')
133+ dependsOn :
134+ - Compliance
125135 steps :
126136 - checkout : self # self represents the repo where the initial Pipelines YAML file was found
127137 clean : true # whether to fetch clean each time
@@ -146,6 +156,11 @@ jobs:
146156 cd packages/react-native-macos-init
147157 yarn build
148158
159+ - task : CmdLine@2
160+ displayName : Code tested in other pipeline [test]
161+ inputs :
162+ script : echo "This code is tested as part of an integration test. See the 'Verify react-native-macos-init' task."
163+
149164 - task : CmdLine@2
150165 displayName : " Publish react-native-macos-init to npmjs.org"
151166 inputs :
@@ -166,10 +181,11 @@ jobs:
166181
167182 - job : RNGithubOfficePublish
168183 displayName : React-Native GitHub Publish to Office
169- pool :
170- vmImage : $(VmImageUbuntu)
184+ pool : Azure-Pipelines-EO-Ubuntu20.04-Office
171185 timeoutInMinutes : 90 # how long to run the job before automatically cancelling
172186 cancelTimeoutInMinutes : 5 # how much time to give 'run always even if cancelled tasks' before killing them
187+ dependsOn :
188+ - Compliance
173189 steps :
174190 - checkout : self # self represents the repo where the initial Pipelines YAML file was found
175191 clean : true # whether to fetch clean each time
@@ -202,7 +218,7 @@ jobs:
202218 - task : CmdLine@2
203219 displayName : ' Verify Dependencies can be enumerated'
204220 inputs :
205- script : sudo apt-get install python3-pip && sudo apt-get install python3-setuptools && pip3 install BeautifulSoup4 && pip3 install wheel && pip3 install wget && python3 android-patches/patching-tool/scripts/downloadDependencies .py $(Build.SourcesDirectory) && tree $(Build.SourcesDirectory)/android
221+ script : sudo apt-get install python3-pip && sudo apt-get install python3-setuptools && pip3 install BeautifulSoup4 && pip3 install wheel && pip3 install wget && python3 .ado/downloadAndroidDependencies .py $(Build.SourcesDirectory) && tree $(Build.SourcesDirectory)/android
206222
207223
208224 # Very similar to the default pack task .. but appends 'ndk21b' to the nuget pack version
@@ -220,7 +236,7 @@ jobs:
220236 BUILD_SOURCESDIRECTORY : $(Build.SourcesDirectory)
221237 BUILD_SOURCEBRANCH : $(Build.SourceBranch)
222238 SYSTEM_ACCESSTOKEN : $(System.AccessToken)
223- githubApiToken : $(githubApiToken )
239+ githubApiToken : $(githubAuthToken )
224240
225241 - task : AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
226242 displayName : 📒 Generate Manifest
@@ -232,3 +248,15 @@ jobs:
232248 inputs :
233249 PathtoPublish : ' $(Build.StagingDirectory)/final'
234250 ArtifactName : ' ReactNative-Final'
251+
252+ - job : Compliance
253+ displayName : React-Native GitHub Compliance pipeline
254+ pool : OE-OfficePublic
255+ timeoutInMinutes : 15 # how long to run the job before automatically cancelling
256+ steps :
257+ - checkout : self # self represents the repo where the initial Pipelines YAML file was found
258+ clean : true # whether to fetch clean each time
259+ fetchDepth : 10 # the depth of commits to ask Git to fetch
260+ lfs : false # whether to download Git-LFS files
261+ submodules : recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
262+ persistCredentials : true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
0 commit comments