skip to Main Content

getting json data into azure pipeline

jobs: # Set an output variable from job A - job: A steps: - powershell: | $image_infor=Invoke-WebRequest https://raw.githubusercontent.com/Sitecore/docker-images/master/tags/sitecore-tags.json ###json data Write-Host $image_infor Write-Host "##vso[task.setvariable variable=myOutput_currentDate;isoutput=true]$image_infor" name: setvarStep # Map the variable into job B - job: B dependsOn: A variables:…

VIEW QUESTION

Ubuntu – Azure Pipeline conditional variables not working as expected

This is part of my azure pipeline yaml pool: vmImage: ubuntu-latest # Use 'windows-latest' if you have Windows native +Node modules variables: ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: brname: $[variables['System.PullRequest.targetBranchName']] isPreRelease: $[eq(variables['brname'], 'main')] ${{ if or(eq(variables['isPreRelease'], 'True'), eq(variables['isPreRelease'], True)) }}: #…

VIEW QUESTION

Azure Pipeline Yaml; file error when initiating a Powershell script

When I am invoking a yaml file in my Azure Pipeline, sample is - task: AzurePowerShell@5 displayName: 'Execute PowerShell Script on Target VMs' inputs: azureSubscription: ${{ variables.SERVICE_CONNECTION_NAME }} pwsh: true ScriptType: 'FilePath' ScriptPath: 'pipeline-scripts/Deploy-ALZDomainControllers.ps1' env: LOCATION: $(LOCATION) TOP_LEVEL_MG_PREFIX: $(TOP_LEVEL_MG_PREFIX) UPSTREAM_RELEASE_VERSION:…

VIEW QUESTION
Back To Top
Search