Skip to content

Commit 6855d0e

Browse files
authored
Fix msal automation (#2101)
1 parent 969d88d commit 6855d0e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

azure_pipelines/automation.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,20 @@ jobs:
5959
6060
- script: 'gem install xcpretty'
6161
displayName: 'Install xcpretty'
62+
63+
64+
- task: DownloadSecureFile@1
65+
name: configuration
66+
displayName: 'Get Automation conf.json'
67+
inputs:
68+
secureFile: 'broker-automation-conf.json'
6269

6370
- task: Bash@3
6471
displayName: Build for testing
6572
inputs:
6673
targetType: 'inline'
67-
script: |
68-
echo $(AppleAutomationBase64) > "MSAL/test/automation/conf_encoded.json"
69-
base64 --decode -i MSAL/test/automation/conf_encoded.json -o MSAL/test/automation/conf.json
74+
script: |
75+
mv $(configuration.secureFilePath) MSAL/test/automation/conf.json
7076
ruby TestRubyFile.rb
7177
xcodebuild build-for-testing \
7278
-workspace MSAL.xcworkspace \
@@ -76,7 +82,7 @@ jobs:
7682
-derivedDataPath 'build' \
7783
| tee xcodebuild.log \
7884
| xcpretty -c
79-
85+
8086
- task: Bash@3
8187
displayName: Run automations
8288
inputs:
@@ -138,4 +144,4 @@ jobs:
138144
issue_title = "Automation tests failure"
139145
issue_body = '''@AzureAD/appleidentity \nAutomation failed for [$(repositoryName)]({0}) ran against commit : {1} \n Pipeline URL : [{2}]({2})'''.format('$(Build.Repository.Uri)', git_commit, pipeline_uri)
140146
github.create_issue(github_org, repo, issue_title, issue_body, labels=['automation failure'])
141-
147+

0 commit comments

Comments
 (0)