Skip to main content

CI/CD Collective

Questions

Browse questions with relevant CI/CD tags

1,038 questions

Has recommended answer
Best practices
0 votes
1 replies
44 views

Deploying separate repos to production with azure-pipelines.yml

I have 4 repos in Azure (all are in development branch): - Web App - Web API - Mail Console 1 - Mail Console 2 Here's how I deploy them in testing phase: 1. Publish Web App and Web API 2. Build Mail ...
kebberpee's user avatar
Answer

I suspect the upload files step is what's baffling you? I suspect that you're connecting to an FTP server using FileZilla. There is a task in Azure Pipelines as well to connect to and upload files to ...

View answer
jessehouwing's user avatar
-1 votes
1 answer
54 views

Find Active Pipelines in Azure DevOps Server [closed]

We are in the process of decommissioning our on premises Azure DevOps Server. To prepare, we have to identify active projects which are using any project under the collection for build or release ...
ANKIT KHARE's user avatar
Answer

If you have access to the database, you query a few tables that store the build definitions and their schedules. There are at least 3 clusters of tables, one for Release management (UI), one for Build ...

View answer
jessehouwing's user avatar
Advice
2 votes
3 replies
79 views

Schedule a Terraform destroy and apply of the same resource using Github Actions in Azure

My goal is to schedule a Cron Job using GitHub Actions to destroy and reapply the same resource at specific times — for example, apply at 8 a.m. and destroy at 5 p.m. Based on my research, I would run ...
Coco's user avatar
  • 25
Answer

I would suggest to move the Bastion resource into its own Terraform configuration and state file. This prevents state file conflicts and unintended side effects for the rest of your infra. This keeps ...

View answer
GuiFalourd's user avatar
Best practices
0 votes
1 replies
55 views

Conditional Run-Time Approval at Azure DevOps

As the title says: I need a job with an approval that is only executed if a runtime variable has a specific value. After reading the docs, it seems like this is not possible, as the approvals are ...
tpschmidt's user avatar
  • 2,757
Answer

In YAML You should be able to use the ManualValidation task instead: - task: ManualValidation@1 inputs: notifyUsers: # string. Required. Notify users. #approvers: # string. Approvers. #...

View answer
jessehouwing's user avatar
Tooling
1 vote
1 replies
68 views

GitHub PR doesn’t wait for Terraform Cloud speculative plan to complete before allowing merge

I have Terraform Cloud connected to my GitHub repository (via GitHub App integration). Here’s my setup: A branch named feature-cr-001 was created from dev. I made code changes and opened a pull ...
Uday Kiran's user avatar
Answer

You'll need to add a Branch Ruleset in which you configure required checks: Enable the require checks to pass rule and enter the required data: You can enter the name of a check that has previously ...

View answer
jessehouwing's user avatar
0 votes
1 answer
101 views

Can an installation job and a test job be in different stages in an Azure Devops Pipeline?

Is it possible to ensure that the build preparation is also passed into all subsequent stages and jobs (node environment path + node_modules), without manually running it at the start of each job? ...
nick zoum's user avatar
  • 6,675
Answer Accepted

Each job creates a new build agent on Azure DevOps pipelines. In your case, you install nodejs on one agent and then run build/test on another. Here, it is better to use one job definition.

View answer
Shamrai Aleksander's user avatar
0 votes
1 answer
129 views

Can the GitHub Actions bot be bypassed from signing commits by the GitHub Terraform provider?

I have a workflow that automatically creates PRs and it needs to bypass the rules that require commits to be signed. I have looked at the Terraform docs for this and a bypass list looks like this: ...
vbnm's user avatar
  • 117
Answer

You can't add GitHub actions to the bypass list at the moment. You can either use a user's PAT token or use a GitHub App and then use the app identity in the bypass list of type "integration"...

View answer
jessehouwing's user avatar
2 votes
2 answers
534 views

Sign commits made by GitHub Actions workflow?

I have a GitHub Actions workflow that automatically creates PRs for an access review. The commits are made by: - name: Configure Git run: | git config user.name "ur-access-...
vbnm's user avatar
  • 117
Answer

It is possible - you need to import you GPG keys and configure commits to use it. The easiest will be to use one of the existing actions, for example: - name: Configure GPG uses: crazy-max/ghaction-...

View answer
Grzegorz Krukowski's user avatar
0 votes
1 answer
93 views

AzureDevOps pipeline Docker v2.240.2 not allowing me to push

I have an Azure Pipeline where I build a docker image and then push it, however the push task keeps giving me an error: At first I thought it was due to the tags or parameters, but my build stage ...
mp252's user avatar
  • 493
Answer

If that is possible, add docker image ls before push to see what exactly your build agent built. As a workaround, you can try buildAndPush command on the build step: - task: [email protected] ...

View answer
Shamrai Aleksander's user avatar
0 votes
1 answer
274 views

Run workflow globally for all repos in an organization

company/repo_A -> some commit \ company/repo_B -> run workflow in company/repo_codecheck company/repo_C -> some commit / company/repo_D We are looking to implement code ...
Haunted's user avatar
  • 475
Answer

GitHub Enterprise can do that via rulesets: you can create a branch ruleset that requires a workflow to pass before any PR can be merged. That workflow can live anywhere in your organization No ...

View answer
Benjamin W.'s user avatar
0 votes
1 answer
172 views

How to skip GitHub Actions workflow triggered by push to main if the original PR was created by github-actions[bot]?

I'm using GitHub Actions with a workflow that is triggered by a push to the main branch: on: push: branches: - main In my setup, a bot (github-actions[bot]) creates a pull request to ...
Tharun's user avatar
  • 21
Answer

There is no way to filter it out on the trigger level. The only way you can make it work currently is to let the workflow run and skip the entire job by checking: jobs: your_job: if: github....

View answer
Grzegorz Krukowski's user avatar
1 vote
1 answer
412 views

Why does the Azure Pipelines Build Agent not use the latest version?

We use Azure DevOps for building and deploying our services. We noticed a strange error occurring recently that was very likely related to a bug fixed in a recent release. But we still got the error. ...
Gabriel Weidmann's user avatar
Answer Accepted

Agent updates roll out across multiple "deployment rings" for Azure DevOps. There is a certain order to these rollouts and sometimes, when an issue is detected during the rollout, an image ...

View answer
jessehouwing's user avatar
0 votes
2 answers
62 views

workflow_run not triggering my second pipeline after successful completion

I have two workflows in my GitHub repo and need the second one to fire after the first completes. name: CI + SonarQube Analysis on: push: branches: [ main ] pull_request: branches:...
kiran itagi's user avatar
Answer

The + character seems to be causing a bug. This version works correctly: name: CI and SonarQube Analysis on: workflow_run: workflows: - CI and SonarQube Analysis types: - ...

View answer
Shayki Abramczyk's user avatar
0 votes
1 answer
98 views

GitHub Actions get sha during after merge commit during push action for deploy

I've done a lot of searching, and what I'm seeing is confusing. What I need, I think, should be relatively simple. I have an action that handles deployments to multiple environments (qa, uat, prod). ...
LoneWolfPR's user avatar
  • 4,121
Answer Accepted

The github context has this available: ${{ github.sha }} in expressions $GITHUB_SHA in the environment So, for your example, you could pass it in like jobs: deploy-to-uat: uses: ./.github/...

View answer
Benjamin W.'s user avatar
1 vote
1 answer
160 views

How to use a checked out workflow

I'm trying to use a workflow from another repo. Repo A has the following structure: .github |___ workflows |___ called |____ action.yml In repo B, I have the following workflow: name: ...
Sig's user avatar
  • 6,150
Answer

You're using a reusable workflow (called) from repo A, but trying to use it like it's a composite/local action (i.e., with uses: ./path). Reusable workflows need to be called in job level, not in step ...

View answer
Shayki Abramczyk's user avatar
2 votes
2 answers
254 views

Azure Devops Pipeline - Prevent manual run on non-master branch

We have certain pipelines that deploy things to production and they can be run manually from the UI. The agents necessarily have certain rights in the prod environment that users do not, and should ...
Richard Payne's user avatar
Answer

Okay, I'm going to give you a lot of options here. Any one of them should fit the bill and can even be combined if you're ultra paranoid (which isn't always a bad thing, mind you!). Of course, since ...

View answer
Daniel Mann's user avatar
  • 59.5k
0 votes
3 answers
131 views

Azure DevOps Pipeline Condition with parameters didn't work

I'm following the Microsoft reference: Parameters in conditions and this is my yml file: parameters: - name: poolType # pool type for the agent, valid values are "windows" or "linux&...
Imran Sh's user avatar
  • 1,806
Answer

This is one of the most difficult pieces of Azure Pipeline YAML syntax to get right, what syntax is available in what stage of the template expansion. I can't find the exact docs which tell whether ...

View answer
jessehouwing's user avatar
1 vote
1 answer
175 views

Github action mirror repository receiving 403

I'm trying to mirrow a public repository belonging to my github organization (I'm an admin for the org) to a private repository in my personal account. I did the following: Created a fine grained ...
Xen_mar's user avatar
  • 10k
Answer Accepted

When you use the checkout action, the auth token is persisted in the git config. Try setting your personal token there instead of in the run step: steps: - name: Checkout repository ...

View answer
Benjamin W.'s user avatar
0 votes
1 answer
71 views

Can the batch parameter be used inside the resources section in Azure Pipelines?

I'm aware that the batch option exists for the top level pipeline trigger like described here, and I've used this already in the past: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-...
raujonas's user avatar
  • 137
Answer

The documentation for pipeline resource triggers can be found here: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/resources-pipelines?view=azure-pipelines https://learn....

View answer
jessehouwing's user avatar
1 vote
4 answers
159 views

How to fix the issue: ##[error]Error: No package found with specified pattern: /home/vsts/work/1/s/**/*.zip

I have a pipeline for building and deploying an angular app. It builds successfully but fails during deployment with the error: ##[error]Error: No package found with specified pattern: /home/vsts/...
Creanix Developer's user avatar
Answer

Why do you use an unexisting parameter of AzureWebApp@1 task? Whatever you set to the packageForLinux, the build always try to find by $(System.DefaultWorkingDirectory)/**/*.zip pattern. If you ...

View answer
Shamrai Aleksander's user avatar
-2 votes
1 answer
80 views

Workflow outputs not being saved or read

I have the following 2 jobs. I have confirmed that the assignment to the variables in each step of the Set batch indicator job is valid and was able to echo out what I expected. However when I try to ...
Madhu m's user avatar
Answer

You have to set outputs at the job level: set-batch-indicator: runs-on: self-hosted environment: ${{ inputs.environment }} needs: [build, test] outputs: ConfigSourceBatch: ${{ steps.batch-...

View answer
Benjamin W.'s user avatar
0 votes
1 answer
359 views

Reliability issues with GitHub actions, with cron based schedule

I am trying to run something every 10 mins, in Github actions, but it's getting quite unreliable. I have the following settings: name: Monitor every 10 minutes on: schedule: - cron: "6 * * ...
Nivedit Jain's user avatar
Answer Accepted

From the docs: The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs. High load times include the start of every hour. If the load is sufficiently high enough,...

View answer
jessehouwing's user avatar
0 votes
2 answers
120 views

How to do a conditional ref for checkout?

I've got a Github workflow for a CI build that looks like this: - name: Checkout meta-repo uses: actions/checkout@v4 with: ssh-key: ${{ secrets.CI_BUILD_PRIVATE_SSH_KEY }} repository: meta-...
parsley72's user avatar
  • 9,327
Answer Accepted

According to GitHub Actions Operators: GitHub offers ternary operator like behaviour that you can use in expressions. By using a ternary operator in this way, you can dynamically set the value of an ...

View answer
Azeem's user avatar
  • 15.1k
0 votes
4 answers
361 views

Azure Classic Pipeline Error: Input required: ConnectedServiceName

I'm trying to create a classic pipeline and I'm getting the following error: Error: Input required: ConnectedServiceName When I view the YAML, I can see ConnectedServiceName is being defined as a ...
TheIronCheek's user avatar
  • 1,241
Answer

You can not edit this yaml because it should be used for migration to yaml pipelines only. It is read-only here. You should add a service connection to your Azure resources (Manage service connections,...

View answer
Shamrai Aleksander's user avatar
-3 votes
1 answer
117 views

How to prevent showing secrets in GitHub Actions output [closed]

I have a GitHub Actions workflow template which gets parameters from the GitHub environment secrets. One of these secrets contains all variables and secrets to build up terraform. The secret looks ...
Tomtom's user avatar
  • 9,448
Answer Accepted

Pass the data containing the secret through the environment: - name: Setup terraform variables shell: bash run: | cat <<'EOF'>terraform.tfvars $...

View answer
jessehouwing's user avatar
0 votes
1 answer
61 views

On the Azure devops git repos ui how to get recent pipeline builds runs to show up in the UI for a repository?

Within the Azure DevOps web gui view for a git repository, https://dev.azure.com/<organization>/<project>/_git/<repository_name> , you can see recent builds for some repositories ...
HeyWatchThis's user avatar
Answer

By default, this option should be enabled and should see the status. Check which branch you see on the code page. If you select the Branches page, you should see the state of each branch where some ...

View answer
Shamrai Aleksander's user avatar
1 vote
1 answer
198 views

How to use a variable in a GitHub action step 'name'?

Given a GitHub workflow that looks something like this: name: Test variable usage on: workflow_dispatch: env: STEP_NAME_01 : "Say hello" FRIENDLY_NAME : Joan HELLO_VERSION : develop ...
vscoder's user avatar
  • 1,057
Answer

There's a handy table in the documentation showing which context is available where. For jobs.<job_id>.steps.name, the contexts are github, needs, strategy, matrix, job, runner, env, vars, ...

View answer
Benjamin W.'s user avatar
1 vote
2 answers
72 views

Have a dict type variable in Azure yml pipelines

I have a yml pipeline and I would like to have a dict variable like the 'files' variable below variables: - template: ../../ci-cd/ado_variables/vars.yml - template: ../../ci-cd/ado_variables/${{ ...
Alberto B's user avatar
  • 650
Answer

That is a complex task to suggest something without pipeline sources. However, you may consider using parameters from this example (or use as an array): https://learn.microsoft.com/en-us/azure/devops/...

View answer
Shamrai Aleksander's user avatar
1 vote
3 answers
175 views

Create a CD script using ADO server

UPDATED POST I have written a script to create a CICD pipeline: trigger: - feature/pipeline stages: - stage: Build displayName: 'Build and Test' jobs: - job: GoBuildJob pool: name: &...
Hey Hello's user avatar
Answer

You may use UniversalPackages@0 Publish and download Universal Packages with Azure Pipelines - task: UniversalPackages@0 displayName: 'Universal publish' inputs: command: publish ...

View answer
Shamrai Aleksander's user avatar
2 votes
3 answers
355 views

Pass powershell output between tasks in Azure Devops

I have read multiple questions regarding this but I can't make it work. I want to pass a powershell object (hashtable) between tasks. I set the hashtable here: $output += @{ roleAssignments = $...
MyName's user avatar
  • 392
Answer

You may use logging commands: SetVariable: Initialize or modify the value of a variable. Then read as environment variable. From the example: Set the variables: - pwsh: | Write-Host "##vso[...

View answer
Shamrai Aleksander's user avatar
-1 votes
2 answers
774 views

The project with id does not exist, or you do not have permission to access it

In my azure devops pipeline i have the following code, - task: PowerShell@2 inputs: targetType: 'inline' script: | echo $(System.AccessToken) | az devops login displayName: '...
imran chowdhury's user avatar
Answer

you need to pass your $(System.AccessToken) through environment variables: System.AccessToken - task: PowerShell@2 env: SYSTEM_ACCESSTOKEN: $(System.AccessToken) inputs: targetType: '...

View answer
Shamrai Aleksander's user avatar
1 vote
1 answer
128 views

Escape string for use in PowerShell task passed as batch script parameter

I need to escape special characters of a password in a YAML file of an Azure DevOps pipeline. The password is part of the connection string of a (Oracle) database connection. It is thus stored as a ...
Markus L's user avatar
  • 1,036
Answer Accepted

Using inline scripts in Azure DevOps tasks means you are generating the body of the script to be executed, so everything in it must be properly escaped. The workaround is not setting the password ...

View answer
Rui Jarimba's user avatar
  • 18.5k
0 votes
2 answers
109 views

Where does the TFS pipeline prints the output?

Suppose I want to build a pipeline of a code which will print "Hello from CICD" in Azure Devops on a Linux agent. Now I want to know that after the pipeline is successfully run where is the ...
Hey Hello's user avatar
Answer

You can find this info on Azure DevOps Docs: View and manage your pipelines View pipeline details

View answer
Shamrai Aleksander's user avatar
1 vote
1 answer
203 views

Syntax highlighting does not work on piped (|) shell commands in GitLab CI script block in VS Code

I am using Visual Studio Code for editing my code. All of my shell commands I put under -| in in a script block of a .gitlab-ci.yml, shows in amber color, like strings in individual shell commands. In ...
Rafiq's user avatar
  • 1,720
Answer Accepted

There is a VS Code extension called YAML Embedded Languages which looks like it does what you're asking for. You'll have to leave a language hint as a comment: deploy_gtn_application: stage: build ...

View answer
Benjamin W.'s user avatar
-1 votes
2 answers
241 views

How to programmatically update lots of existing Azure DevOps Pipelines (yml) to use newly migrated GitHub Repos?

I need to update multiple existing Azure DevOps pipelines that currently point to Azure Repos repositories and reconfigure them to use the newly migrated GitHub repository instead. The pipelines are ...
JASON HEIDENTHAL's user avatar
Answer

In case you used the GitHub Enterprise Importer, there is a rewire command to automatically update all build definitions. gh extension install gh/gh-gei gh extension install gh/gh-ado2gh gh ado2gh ...

View answer
jessehouwing's user avatar
2 votes
1 answer
963 views

deploy-pages@v4 Cannot Find Uploaded Artifact (No artifacts named "github-pages" were found)

I am trying to deploy my project to GitHub Pages using GitHub Actions, but I am running into an issue where deploy-pages@v4 cannot find the uploaded artifact. Run actions/deploy-pages@v4 Fetching ...
Józef Podlecki's user avatar
Answer Accepted

The relevant bit from the download-artifact docs: By default, the permissions are scoped so they can only download Artifacts within the current workflow run. In other words, you have to make the ...

View answer
Benjamin W.'s user avatar
0 votes
1 answer
114 views

What's the proper way to modify inputs before calling an external workflow?

I'm working with multiple repositories on the same domain that use Github Actions. I'm trying to update our deployment pipeline to run a test suite whenever changes to one of our APIs are deployed to ...
Working Title's user avatar
Answer Accepted

You have to declare the output on a job level, and add an ID to the step producing the output. Your examples are all invalid as they're missing the steps: object, but I assume that's due to copy-...

View answer
Benjamin W.'s user avatar
0 votes
1 answer
483 views

Get changed files in Azure DevOps PR based pipeline

I have an Azure DevOps pipeline triggered by any pull request targeting main branch. I want to list only the files affected by the PR. Using git diff to list them fails, since the build pipeline uses ...
Daniel M.'s user avatar
  • 315
Answer Accepted

To use git diff, you need to download a changes history and GitHub Actions also have the same setting: Fetch all history for all tags and branches Also, you may use REST API to get changes in PR: ...

View answer
Shamrai Aleksander's user avatar
1 vote
1 answer
98 views

Sphinx fails on GitHub Actions: some incomprehensible problem with Ghostscript

I have a GitHub Actions workflow to generate documentation using Sphinx. I use ubuntu-22.04 image for that and I install ghostscript because it is used somewhere internally to convert a PDF image to a ...
Dmitry Kabanov's user avatar
Answer Accepted

The actions/checkout by default does a shallow checkout and doesn't restore submodules or download LFS objects. This can cause the repo on the Runner to be different than on your local machine. In ...

View answer
jessehouwing's user avatar
0 votes
2 answers
157 views

Download a Zip File from Azure DevOps Git Repo Using Azure DevOps SDK

I am trying to download a zip file from an Azure DevOps Git repository using the Azure DevOps SDK for .NET (dont want to use the plain REST APIs). public async Task DownloadItemAsync(string ...
osim_ans's user avatar
  • 487
Answer Accepted

you may try GetItemZipAsync method var fileStream = File.Create("C:\\Temp\\my.zip"); var zipstream = GitClient.GetItemZipAsync(TeamProjectName, GitRepoName, path: "/Readme.md")....

View answer
Shamrai Aleksander's user avatar
0 votes
2 answers
222 views

Use variables in Approval and Check Azure Devps Pipeline

I have configured a pipeline that uses an environment approve-on-PRD with a REST API call in "Approval and Checks" to check external dependencies before allowing the Deploy stage to run. - ...
Bennimi's user avatar
  • 526
Answer

You have a few syntax issues in your pipeline. Setting the variable Instead of using a , separator: echo "##vso[task.setvariable variable=RefId,isOutput=true]$ref_id" Use a ; separator: ...

View answer
Rui Jarimba's user avatar
  • 18.5k
-1 votes
2 answers
153 views

Use Variable from matrix job in another matrix job

My pipeline creates a dynamic matrix which is used in two matrix jobs. How can i access an output variable of the first job from the second job which comes from the same matrix leg i have come this ...
chrisblankde's user avatar
Answer

The matrix strategy is used to generates copies of a job, each with different configuration (i.e. variables). Each job will run in parallel and independently from each other, i.e. there should be no ...

View answer
Rui Jarimba's user avatar
  • 18.5k
0 votes
1 answer
68 views

Azure pipeline giving error An element could not be located at line WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), appiumOptions);

I am getting the error: ClassInitialize threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: An element could not be located on the page using the given search ...
Omkar Patil's user avatar
Answer

Did you check this doc: WinAppDriver in CI with Azure Pipelines? WinAppDriver supports self-hosted agents only. (HostedVS2019 and HostedVS2017 are not available) and you need to enable interactive ...

View answer
Shamrai Aleksander's user avatar
0 votes
2 answers
139 views

Reading env variable from template.yaml

We need a help We are trying to centralize our environment variables, Name of the pipeline is "mytap-test" my vars.yaml template contains: variables: - name: mytap-test value: 22 my ...
vinilka8's user avatar
Answer

There's no need to use logging commands in this particular case. Just declare a regular variable like this, which will be recursively expanded: variables: - name: docker_version value: $($(Build....

View answer
Rui Jarimba's user avatar
  • 18.5k
-1 votes
1 answer
278 views

I'm having a hard time passing secrets in gcp secret manager to cloud build docker build stage. Am i passing these correctly?

steps: name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:slim' entrypoint: 'bash' args: '-c' | echo "Fetching secrets from Secret Manager..." echo -n $(gcloud secrets versions access latest -...
Meer's user avatar
  • 1
Answer

You can do much simpler. Keep in mind that you can use SECRET_ENV in Cloud Build only in "script" context (entrypoint bash) See my working exemple steps: - name: 'gcr.io/cloud-builders/...

View answer
guillaume blaquiere's user avatar
-1 votes
1 answer
235 views

Exclude reusable workflows from GitHub Actions sidebar

I have some reusable workflows in a repo. These workflows are useless on their own, they only include the workflow_call event. However, they still show on the GH UI, and they still try to run. The ...
Josh M.'s user avatar
  • 28.1k
Answer

This is how GitHub Actions currently working, you can't hide the reusable workflows from the UI. There is a popular feature request about it: https://github.com/orgs/community/discussions/12025 And ...

View answer
Shayki Abramczyk's user avatar
1 vote
1 answer
110 views

Split Unit test to different job than publishing in Azure DevOps Yaml with ASP.NET Core

We have a monolithic ASP.NET Core application that contains three websites and one console application. There are lots of class libraries that are shared. We are converting to YAML build pipeline on ...
Ghassan Karwchan's user avatar
Answer

Sure. You can publish artifacts and then download them in subsequent jobs. You already do it as the last step of your pipeline. Just use - checkout: none to skip grabbing the source code and - ...

View answer
Daniel Mann's user avatar
  • 59.5k
-1 votes
1 answer
172 views

How to reuse GitHub workflows for GitLab pipelines or vice versa?

Unfortunately, GitLab and GitHub use different syntaxes and configurations for their workflow files, so I cannot directly reuse GitHub workflow files in GitLab pipelines. Are there some plugins/...
Stefan's user avatar
  • 12.8k
Answer

Both use a different expression language, offer different features etc. So. your main workflow files will need to be unique per platform. But like you suggested, both platforms can run docker ...

View answer
jessehouwing's user avatar
0 votes
2 answers
319 views

Run Python script on Azure DevOps with Classic UI

I need to run a Python script in an Azure Pipeline, for this I was thinking of using Python script with inline code, previously I needed to install the packages, so far so good. The problem is that I ...
Bruno Silva's user avatar
Answer

Have you considered using Microsoft-hosted agents? Python and pip are already included. You can then select one of the pre-installed versions of Python using the UsePythonVersion@0 task.

View answer
Rui Jarimba's user avatar
  • 18.5k
1 vote
2 answers
147 views

Azure Pipeline remove job from ui if job is conditionally skipped/removed

I have a template that loop out three stages. - ${{ each environment in parameters.environments }}: If we are in test environments I want to run a test-suite. But not for QA and Prod. I kind of ...
user29445754's user avatar
Answer Accepted

You can use an if statement to prevent a specific stage, job or step from being generated in QA or Prod environments: - ${{ if eq(environment, 'test') }}: # ... Example pipeline: parameters: - ...

View answer
Rui Jarimba's user avatar
  • 18.5k


15 30 50 per page
1
2 3 4 5
21