azure-pipelines

Azure Pipelines agent on Azure VM

时光毁灭记忆、已成空白 提交于 2021-01-28 18:51:15
问题 I am trying to setup a custom build agent on a Windows VM in Azure. I installed the build agent from Azure Pipelines. The VM shows in the agent pool, but is offline. For this VM I used the default settings, so it automatically created a virtual network, public IP, and network security group. The network security group is modified to allow RDP traffic from my IP address only, and to allow HTTPS traffic. I am assuming something with this setup is preventing Azure Pipelines from sending data to

Is it possible to create additional pipeline steps based on a variable?

只愿长相守 提交于 2021-01-28 09:15:33
问题 Is it possible in Azure Devops YAML pipelines to dynamically create additional steps based on some variable data (without creating our own plugin) The thing is I see that I want to iterate through several directories, but I don't want to just lump it all in a single step since it makes it harder to scan through to find an error. 回答1: It is possible to include steps conditionally with an if statement. I think the example of extending a template on the same page will give you a good indication

Azure Pipelines counts xUnit InlineData as one test instead of many

ⅰ亾dé卋堺 提交于 2021-01-28 09:11:02
问题 In our Azure Pipelines pipeline we have .NET Core xUnit test methods that take an InlineData parameter. The test runner runs all test methods and correctly reports in its console output each InlineData instance as a test run. However, Azure Pipelines reports a lower test count because it counts the [Theory] tests as one test (instead of one test for every instance of InlineData). How can I make Azure Pipelines report all instances of InlineData as tests? As an example, here's a job output.

Is it possible to create additional pipeline steps based on a variable?

徘徊边缘 提交于 2021-01-28 09:10:30
问题 Is it possible in Azure Devops YAML pipelines to dynamically create additional steps based on some variable data (without creating our own plugin) The thing is I see that I want to iterate through several directories, but I don't want to just lump it all in a single step since it makes it harder to scan through to find an error. 回答1: It is possible to include steps conditionally with an if statement. I think the example of extending a template on the same page will give you a good indication

Combine results of several pipeline jobs into azure web app package

狂风中的少年 提交于 2021-01-28 08:53:10
问题 We're in the process of moving our product to an azure web app. We have an extensive existing pipeline containing multiple parallel jobs. One of these jobs compiles a asp.net web application. Some others compile a vue.js website. Currently, the results of the web application and the vue projects are combined in a separate stage, using a powershell script. Now I can convert the publish step of the web application to generate a deployment package for azure. But what is the best way of also

Combine results of several pipeline jobs into azure web app package

怎甘沉沦 提交于 2021-01-28 08:31:06
问题 We're in the process of moving our product to an azure web app. We have an extensive existing pipeline containing multiple parallel jobs. One of these jobs compiles a asp.net web application. Some others compile a vue.js website. Currently, the results of the web application and the vue projects are combined in a separate stage, using a powershell script. Now I can convert the publish step of the web application to generate a deployment package for azure. But what is the best way of also

Remove commit message from azure devops pipeline run web page?

心不动则不痛 提交于 2021-01-28 08:03:43
问题 I know how to change the runName (also known as Build.BuildNumber) but as shown here the commit message also shows up (this is the pipeline page in devops) even though it's not part of the name that I set. This behavior is also present when I don't change the name, it just looks like yyyyMMdd.rev <commit message> . I don't want the message there because the BuildNumber that I set describes the pipeline run better, and the commit message could be confusing. Is it possible to remove the commit

Azure Devops trigger pipeline with pushing tags from Bitbucket

久未见 提交于 2021-01-28 06:52:36
问题 I am using BitBucket for my project and would like to know whether or not pushing tags can trigger pipeline from BitBucket. All the tutorials I saw are using Github. If anyone successfully did that with BitBucket, can you please give some advice? Thanks a lot Here is my configuration of pipeline (following the discussion in https://developercommunity.visualstudio.com/content/problem/656727/build-pipeline-trigger-from-git-tag-is-not-working.html) trying to trigger with tag push trigger: tags:

Specifying Pipeline resource version using variable

最后都变了- 提交于 2021-01-28 06:13:16
问题 When using Pipeline resource an error occurs when I am trying to use the value of the Version field as a variable value. resources: pipelines: - pipeline: BuildApp source: BuildApp # version: $(appversion) <- this doesn't work version: 20191204.17 <- this works Static version looks not so useful. Is it possible to specify such version for each run dynamically? For example, using variables. 回答1: I tested and reproduced the problem you met and use parameters, template variable, template

How to configure an Azure DevOps release to complete all its stages before starting a new one

╄→尐↘猪︶ㄣ 提交于 2021-01-28 05:08:24
问题 I am setting up an Azure DevOps release pipeline with three different stages. As shown in the following screenshot a new release has already started even though the preceding release is still running. Is there a way to configure a release to complete all its stages before the next in the queue is getting started? 回答1: For more readable, I will talk based on the pic you shared in the question. In fact, in the release which has multiple stages, the stages are independent of each other. As you