Updating a Variable in Azure pipeline
I have a CI/CD pipeline on Azure. I have set up a .yaml file and a variable called SerialNumber, set to 000000 directly in the Azure interface (not in the .yaml). I want it to be used inside of the…
I have a CI/CD pipeline on Azure. I have set up a .yaml file and a variable called SerialNumber, set to 000000 directly in the Azure interface (not in the .yaml). I want it to be used inside of the…
We are currently using an Azure DevOps pipeline to trigger a terraform plan against an existing infrastructure. Within this pipeline during the terraform init stage, terraform will analyze the scripts and download modules from an external repository. During the initial…
I'm facing an issue with my Azure Function App that's triggered by a pipeline. Initially, my function app would always return a success code, even if one of its activities failed. To fix this, I modified the code to check…
When I build the Dockerfile below by running the command manually at a Windows notebook docker build -f Dockerfile --no-cache --tag my-postgis:16-3.4 --build-arg DOWNLOAD_URLS="https://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf https://download.geofabrik.de/europe/germany/hamburg-latest.osm.pbf" --build-arg OSM_PASSWORD=osm_password --build-arg POSTGIS_TAG=16-3.4 . then it works as expected and the prefilled PostgreSQL database…
I have built up a pipeline with a powershell task to create new secrets in Azure Key Vault. The same key vault is linked with Azure DevOps variable group (pipelines / library / variable group). I already added few keys…
I need to run docker commands such as "docker build" and "docker push" in azure devops build pipelines. I know there are tasks available to do these things such as imagebuildingInfo@1 etc. But issue is I need to do this…
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:…
I have some Android tests in Jetpack Compose UI testing. I have set them on a azure pipeline to be run and used Gradle task with task "connectedAndroidTest". The first test is to login the user (microsoft login). My question…
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)) }}: #…
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:…