# 'Allow scripts to access the OAuth token' was selected in pipeline. Add the following YAML to any steps requiring access: # env: # MY_ACCESS_TOKEN: $(System.AccessToken) # Multi-job configuration must be converted to matrix strategy: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases?view=azure-devops&tabs=yaml#multi-job-configuration name: Build Number $(buildid) jobs: - job: Job_1 displayName: Job1 pool: name: Default steps: - checkout: self - job: Job_2 displayName: Job2 timeoutInMinutes: 100 cancelTimeoutInMinutes: 50 pool: vmImage: vs2017-win2016 steps: - checkout: self persistCredentials: True - task: PowerShell@1 displayName: PowerShell Script inputs: scriptType: inlineScript inlineScript: "# You can write your powershell scripts inline here. \n# You can also pass predefined and custom variables to this scripts using arguments\n\n Write-Host \"Hello World example pipeline-2\"" - task: replacetokens@3 displayName: Replace tokens in **/*.config - job: Job_3 displayName: Job3 pool: server steps: [] ...