azure-pipelines-release-pipeline

Use DevOps Release Pipeline to Upload Artifacts to a Linux Server

雨燕双飞 提交于 2020-12-14 23:56:12
问题 Is there a simple way to upload build artifacts in a zip file to a Linux Server using SCP or some other protocol? Right now the build sits in a specific directory on the build server ready to be uploaded but the docs I've been reading haven't made it clear how to upload it to Linux using DevOps Release Pipeline. The documentation and question/answers I've been reading appears to be windows to windows rather than windows to Linux. Thanks! 回答1: Is there a simple way to upload build artifacts in

Use DevOps Release Pipeline to Upload Artifacts to a Linux Server

狂风中的少年 提交于 2020-12-14 23:55:51
问题 Is there a simple way to upload build artifacts in a zip file to a Linux Server using SCP or some other protocol? Right now the build sits in a specific directory on the build server ready to be uploaded but the docs I've been reading haven't made it clear how to upload it to Linux using DevOps Release Pipeline. The documentation and question/answers I've been reading appears to be windows to windows rather than windows to Linux. Thanks! 回答1: Is there a simple way to upload build artifacts in

How to run EXE on VSTS Agent hosted machine

烈酒焚心 提交于 2020-12-13 05:36:42
问题 We have release pipeline in the VSTS that runs on a private server using VSTS agent. At the end of release pipeline there is a commmand line step to start executable (Nginx) file. Which succeeds but executable does not start the nginx process. I believe process dies as soon as the parent CMD or Powershell window dies. I have tried both CMD and Powershell (Start "exe" and Start-Process) to execute exe but none seem to be working. Those commands run perfectly on local computer but not when

How to run EXE on VSTS Agent hosted machine

ⅰ亾dé卋堺 提交于 2020-12-13 05:36:29
问题 We have release pipeline in the VSTS that runs on a private server using VSTS agent. At the end of release pipeline there is a commmand line step to start executable (Nginx) file. Which succeeds but executable does not start the nginx process. I believe process dies as soon as the parent CMD or Powershell window dies. I have tried both CMD and Powershell (Start "exe" and Start-Process) to execute exe but none seem to be working. Those commands run perfectly on local computer but not when

How to run EXE on VSTS Agent hosted machine

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-13 05:35:44
问题 We have release pipeline in the VSTS that runs on a private server using VSTS agent. At the end of release pipeline there is a commmand line step to start executable (Nginx) file. Which succeeds but executable does not start the nginx process. I believe process dies as soon as the parent CMD or Powershell window dies. I have tried both CMD and Powershell (Start "exe" and Start-Process) to execute exe but none seem to be working. Those commands run perfectly on local computer but not when

Azure Devops - release pipeline with docker and Azure Container Registry (ACR) - problem with tag

三世轮回 提交于 2020-12-13 03:26:54
问题 I have a very weird (and I suppose easy to fix) problem :) I am trying to have a working CI/CD pipeline in Azure. For this purpose, I have a repository in Azure devops and build and release pipeline created. I am publishing docker images to Azure Container Registry and during release, I am pulling this image (or at least - I am trying because it doesn't work) and I am trying to publish it on Webapp for containers. The "app" in my case it is SingalR hub on .NET Core 3.1 (but I don't suppose it

VSTS Build - Choose which unit tests run depending on which files were modified in a pull request

蓝咒 提交于 2020-12-11 04:33:25
问题 I would like to control which unit tests run in a VSTS build pipeline based on which files were modified in the PR that triggered the pipeline. Is there a way to detect which files were modified in a pull request during a VSTS build triggered for that PR, and then choose which tests to run based on that information? 回答1: Yes, this is possible: Manual Approach One approach to this is to have a custom Powershell task in your pipeline that sets a variable based on whether a certain file was

VSTS Build - Choose which unit tests run depending on which files were modified in a pull request

非 Y 不嫁゛ 提交于 2020-12-11 04:33:18
问题 I would like to control which unit tests run in a VSTS build pipeline based on which files were modified in the PR that triggered the pipeline. Is there a way to detect which files were modified in a pull request during a VSTS build triggered for that PR, and then choose which tests to run based on that information? 回答1: Yes, this is possible: Manual Approach One approach to this is to have a custom Powershell task in your pipeline that sets a variable based on whether a certain file was

How can you use secret variables from a linked variable group in an Azure Powershell task in an Azure Release pipeline?

倾然丶 夕夏残阳落幕 提交于 2020-12-07 06:40:49
问题 I have an Azure Release pipeline that I've built using the GUI in Azure DevOps. There is a stage that has a linked variable group (Release scope) with a secret variable in the variable group. The stage has an agent job with an Azure Powershell task that runs a script file. That script file references the secret variable using the syntax $env:MYSECRETVARIABLE but the value is null. When I add an Azure Powershell task for debugging that runs Get-ChildItem -Path Env:\ , I can see that all the

How can you use secret variables from a linked variable group in an Azure Powershell task in an Azure Release pipeline?

牧云@^-^@ 提交于 2020-12-07 06:39:25
问题 I have an Azure Release pipeline that I've built using the GUI in Azure DevOps. There is a stage that has a linked variable group (Release scope) with a secret variable in the variable group. The stage has an agent job with an Azure Powershell task that runs a script file. That script file references the secret variable using the syntax $env:MYSECRETVARIABLE but the value is null. When I add an Azure Powershell task for debugging that runs Get-ChildItem -Path Env:\ , I can see that all the