Skip to content

Commit c0d2413

Browse files
committed
creds
1 parent 5474161 commit c0d2413

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

azure-pipelines/pull-request-validation/build-consumers.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ stages:
116116
git status
117117
git rev-parse HEAD
118118
workingDirectory: $(Agent.BuildDirectory)/s/common
119+
- bash: |
120+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROID_MSAL_USERNAME]VSTS"
121+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROID_MSAL_ACCESSTOKEN]$(System.AccessToken)"
122+
displayName: 'Set VSTS Fields in Environment'
119123
- task: Gradle@3
120124
displayName: Assemble msal
121125
inputs:
@@ -149,6 +153,10 @@ stages:
149153
clean: true
150154
submodules: recursive
151155
persistCredentials: True
156+
- bash: |
157+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDADACCOUNTS_USERNAME]VSTS"
158+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDADACCOUNTS_ACCESSTOKEN]$(System.AccessToken)"
159+
displayName: 'Set VSTS Fields in Environment'
152160
- template: ../templates/steps/automation-cert.yml
153161
- task: CmdLine@2
154162
displayName: Checkout common submodule $(commonBranch)
@@ -190,6 +198,10 @@ stages:
190198
clean: true
191199
submodules: recursive
192200
persistCredentials: True
201+
- bash: |
202+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDADACCOUNTS_USERNAME]VSTS"
203+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDADACCOUNTS_ACCESSTOKEN]$(System.AccessToken)"
204+
displayName: 'Set VSTS Fields in Environment'
193205
- task: AzureKeyVault@2
194206
displayName: 'Get Key vault LabAuth'
195207
inputs:
@@ -203,11 +215,6 @@ stages:
203215
inputs:
204216
targetType: inline
205217
script: java -version
206-
- task: CmdLine@1
207-
displayName: Set MVN Access Token in Environment
208-
inputs:
209-
filename: echo
210-
arguments: '##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDADACCOUNTS_ACCESSTOKEN]$(System.AccessToken)'
211218
- task: CmdLine@1
212219
displayName: Set Office MVN Access Token in Environment
213220
inputs:

0 commit comments

Comments
 (0)