skip to Main Content

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

Ubuntu – The Yaml is not validating If condition: /azure-pipelines.yml (Line: 64, Col: 13): Expected at least one key-value pair in the mappin

name: $(Version.Major).$(Version.Minor).$(Version.Semantic) trigger: branches: include: - master - feature/* - bug/* parameters: - name: host type: string default: IPC_T1_MSG values: - IPC_T1_MSG - IPC_A1_MSG - IPC_T4TC_MSG - name: checkserver displayName: To check the server if it Tomcat type: boolean variables:…

VIEW QUESTION
Back To Top
Search