azure-devops

Azure DevOps extensions - what language can I use?

拥有回忆 提交于 2021-02-16 09:32:10
问题 I want to develop a DevOps hub plugin that gets work item details and generates a PDF. I have viewed the samples that all seem to use typescript: https://docs.microsoft.com/en-us/azure/devops/extend/develop/samples-overview?view=azure-devops. I'm having trouble understanding the context that the code runs in, does it run on the server or in the browser? I know I need to use a web server as I have made a test hub plug in and is running from my local web server. I would prefer to be able to use

Get Env Variable set in Azure Powershell in Dev Ops Pipeline

我只是一个虾纸丫 提交于 2021-02-15 07:43:58
问题 I have 2 Azure Dev Ops Pipeline Tasks within a pipeline - the first calls a powershell script that does some stuff and then sets an Env variable I want to reference again; $env:MYVALUE = "ABC" This powershell script is executed and works well - however I thought I would be able to reference $MYVALUE in the pipeline after it running; task: SqlAzureDacpacDeployment@1 displayName: 'Do The thing' inputs: ... DatabaseName: '$(MYVALUE)' ... Is it possible to obtain the ENV variable from the

Get a list of tasks through rest api in azure devops

痞子三分冷 提交于 2021-02-15 07:42:13
问题 I'm trying to get a list of tasks which are completed in particular project in Azure DevOps. I want to use Azure DevOps's REST api to use this list in Jenkinsfile. Is it possible? So far i've been able to get status of one-particular task (so ID needs to be specified) so it doesn't work for me very well. I also experimented with queries and i've been able to create query in ADO which list tasks that are in "Done" state but i can't find a way to get query result through REST api to Jenkinsfile

Resolving Git conflicts in Visual Studio to have a commit after a bug at linking source and the server

我是研究僧i 提交于 2021-02-11 18:23:21
问题 Suddenly my local git repository bugged in a way that it didn't response to git commands, So with the help of a great professional here was able to reset, re-link it to the remote address at DevOps server. Link to the previous topic: Previous topic Now having some conflicts when trying to Cherry Commit my local repository changes to its DevOps location. Used this: git cherry-pick theversion now it seems pending. Please have a look at the below image: Don't know what should I do now. I want

Setting build number format conditionally

隐身守侯 提交于 2021-02-11 18:19:57
问题 I'm using the YML file and i'm trying to set the build number format using the following snippet, but I'm not quite sure how to get the `Build.SourceBranch' into the formatting. I've tried to use $(Build.SourceBranch) ... (Build.SourceBranch) and Build.SourceBranch I'm attempting to set the output to look like 20190220-create-yaml.2 etc for when it's a feature feature branch. and just 20190220.3 when it's a master branch. variables: ${{ if ne(variables['Build.SourceBranch'], 'master') }}:

Setting build number format conditionally

筅森魡賤 提交于 2021-02-11 18:18:13
问题 I'm using the YML file and i'm trying to set the build number format using the following snippet, but I'm not quite sure how to get the `Build.SourceBranch' into the formatting. I've tried to use $(Build.SourceBranch) ... (Build.SourceBranch) and Build.SourceBranch I'm attempting to set the output to look like 20190220-create-yaml.2 etc for when it's a feature feature branch. and just 20190220.3 when it's a master branch. variables: ${{ if ne(variables['Build.SourceBranch'], 'master') }}:

NuGet Packager with version using build number, adding -beta

我与影子孤独终老i 提交于 2021-02-11 18:03:42
问题 My goal is to deploy NuGet packages (to in-house Nuget server) that auto-increment the version based on date and last Rev, and include a -beta tag. I am using VSTS to build and package using cake, with a build number format of $(BuildDefinitionName)_2.0.$(Date:yyMMdd)$(Rev:.r) . I have a .nuspec manifest file that specifies: $version$ , and a NuGet Packager as such: This works great. But now, I want to have the option of a NuGet packager that produces a package that is tagged as beta, and

Project Build fails on TFS azure because of the project reference

喜你入骨 提交于 2021-02-11 17:58:42
问题 MVC Web Application Solution fails to build on the TFS azure (.visualstudio.com) because project has reference to another shared library project. Build Log: Build started 2/26/2013 12:53:17 AM. Project "C:\a\src\Development\[Main Project].sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Debug|Any CPU". C:\a\src\Development\[Main Project].sln.metaproj : error MSB3202: The project file "C:\a\src\Development\..\..\[Sub Project Root]\Development\

Is it possible to get Code Coverage of .NET Framework Project using coverlet in Azure DevOps?

不问归期 提交于 2021-02-11 17:19:25
问题 I easily configured to get the coverage result for .NET Core Projects in Azure DevOps, but no luck with .NET Framework Projects. So, I would be so grateful to get suggestion on this because coverlet documentation is clearly saying that we can also use it for .NET Framework Projects. This question is kinda similar to mine but I didn't see any answer there, Can you use Coverlet to get code coverage data in a .NET Framework project? 回答1: Yes, you can can code coverage data from a ASP.NET project

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,