azure-pipelines

How can I check-in files in TFS with azure pipelines

廉价感情. 提交于 2021-02-20 02:45:51
问题 I'm trying to automate a local deployment script that builds a javascript bundle and then, with the help of TFS command line tool, it checks-in the bundle into a TFS repository. Right now I have the pipeline building the bundle but I still need a last Task that puts the created files into TFS. It is important to note that the TFS is in another project. Is there a Taks that does check-ins to TFS? If not, what alternatives do I have without using a custom script for that? 回答1: I wrote a little

Scalatest in maven: JUnit results

馋奶兔 提交于 2021-02-19 08:28:24
问题 I have a continuous integration server set up in Microsoft Visual Studio Team Services. I am able to build my code and run my tests through scalatest . However, I cannot figure out how to output the results in a JUnit format. I have seen many results for people using SBT, but none who are using Maven . Under configuration, is the 'junitxml' tag supposed to generate the correct file? This would mean it's a Microsoft problem then. My scalatest plugin currently look like: <plugin> <groupId>org

How to demand multiple agent machines in Azure devops pipeline pool?

£可爱£侵袭症+ 提交于 2021-02-19 07:32:32
问题 I'm looking if I can specify a list of agents in Agent pool demands? In UI azure pipeline has only two options equals and exists. So, I tried adding two demands but pipeline takes only first demand The same in yaml is as follows, pool: name: AWS Pool demands: - Agent.Name -equals simLin02 - Agent.Name -equals ubuAgent01 I would like to know if there is any logical way of specifying the list of agent machines in yaml like following or any other alternatives where I can pass a list of agent

How to demand multiple agent machines in Azure devops pipeline pool?

走远了吗. 提交于 2021-02-19 07:32:26
问题 I'm looking if I can specify a list of agents in Agent pool demands? In UI azure pipeline has only two options equals and exists. So, I tried adding two demands but pipeline takes only first demand The same in yaml is as follows, pool: name: AWS Pool demands: - Agent.Name -equals simLin02 - Agent.Name -equals ubuAgent01 I would like to know if there is any logical way of specifying the list of agent machines in yaml like following or any other alternatives where I can pass a list of agent

Errors in Azure DevOps build - are you missing an assembly reference?

回眸只為那壹抹淺笑 提交于 2021-02-18 20:58:56
问题 I am using VSTS ( Azure DevOps ) for the first time and am setting up my first build (I have previously been using TFS). I'm trying to build a .NET application targeting .NET Framework 4.6 . However I'm getting build errors relating to missing namespaces and / or assemblies. Error CS0246: The type or namespace name 'OwinStartupAttribute' could not be found (are you missing a using directive or an assembly reference?) Error CS0234: The type or namespace name 'Http' does not exist in the

Azure DevOps REST API to create a release definition

孤者浪人 提交于 2021-02-11 16:52:16
问题 I'm trying to create a release definition by using Azure DevOps REST API. I've created a json file which has configuration details for the request. I'm getting the below error, while creating the release definition. { "$id": "1", "innerException": null, "message": "Workflow of deploy job 'Run on the agent' in release pipeline stage 'development' is invalid. Add valid tasks and try again.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException,

Azure DevOps REST API to create a release definition

人走茶凉 提交于 2021-02-11 16:51:29
问题 I'm trying to create a release definition by using Azure DevOps REST API. I've created a json file which has configuration details for the request. I'm getting the below error, while creating the release definition. { "$id": "1", "innerException": null, "message": "Workflow of deploy job 'Run on the agent' in release pipeline stage 'development' is invalid. Add valid tasks and try again.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException,

Get the list of skipped tasks on Azure DevOps Pipeline

给你一囗甜甜゛ 提交于 2021-02-11 15:51:55
问题 Is there a way by which we can get the list of skipped tasks from the build? For example, I have 2 tasks that run conditionally only based on external factors. So how can I see, whether the tasks were skipped or actually ran from Azure DevOps REST API? I need to trigger another build conditionally based on the above factor. Any help will be appreciated! 回答1: You should look into the Build Timeline REST API. If you issue the following GET request: GET https://dev.azure.com/{organization}/

Get the list of skipped tasks on Azure DevOps Pipeline

北城以北 提交于 2021-02-11 15:49:06
问题 Is there a way by which we can get the list of skipped tasks from the build? For example, I have 2 tasks that run conditionally only based on external factors. So how can I see, whether the tasks were skipped or actually ran from Azure DevOps REST API? I need to trigger another build conditionally based on the above factor. Any help will be appreciated! 回答1: You should look into the Build Timeline REST API. If you issue the following GET request: GET https://dev.azure.com/{organization}/

Azure DevOps test -xml not found after running the Cypress tests

放肆的年华 提交于 2021-02-11 15:23:45
问题 Added a Publish test results task in Azure DevOps CI/CD pipeline, test were successfull, but after running the test it complaints about ##[warning]No test result files matching **/test-*.xml were found. Could someone please advise on how can we resolve similar problem ? Publish Test Results task : configuration Test result format= JUnit Test results files= **/test-*.xml Search folder = $(System.DefaultWorkingDirectory) Test results title = Cypress Test Results note: I have try adding the