Questions tagged [azure-devops]

1

votes
1

answer
504

Views

How to know if a ID has a parent ID or not in WIQL TFS?

I have an id and I want to know if has a parentid or not by C# coding for TFS. In my TFS board there are many user stories that do not include a Feature ? My hierarchical structure in TFS is as follows: Feature --->User Stories(u1,u2,u3) --->Tasks (t1,t2,t3) Sometimes a user story does not contain...
Akhil Jain
1

votes
1

answer
128

Views

VSTS How to manage workitems and backlog with single team project

Our small team works on a dozen or more apps and databases. Im going through the docs and have already setup a single team project after reading several sources that mention this being the preferred way rather than multiple team projects. Each application has its own Git repo. Now Im wondering how...
bitshift
1

votes
2

answer
915

Views

VSTS - how to get Code Coverage results

I'm new to DevOps work and I've been tasked to setup a build for one of our .net Standard Library projects. I used the build template for this, which works great! But I want to add a code coverage into build output (there's a test project in the solution). In the 'VsTest - testAssemblies' task, I'...
Rob McCabe
1

votes
1

answer
342

Views

Azure DevOps default permissions

In Azure DevOps, branch security for git repos defaults the 'Force push' property to 'Not set' for all Azure DevOps Groups. This effectively denies this permission. We're following gitflow where I work and would generally deny this permission explicitly for persistent branches, Master and Develop; h...
Ryan.Bartsch
1

votes
1

answer
205

Views

How to configure a microservices project in azure devops?

I am in a microservices project where we are creating around 120 microservices. How do I configure azure devops for this project? Do I have to create a new project for each microservice? I would like to keep the dash for project monitoring
user2796768
1

votes
2

answer
330

Views

Adding Images in Azure DevOps Wiki

I'm trying to add few images to the wiki in 1 of my Azure DevOps projects. When I use the absolute path as mentioned here https://docs.microsoft.com/en-us/azure/devops/project/wiki/markdown-guidance?view=azure-devops#images in the article, the images are not showing up. Any help?
Srivatsa Marichi
1

votes
2

answer
42

Views

Azure DevOps - set work item auto-id numbering to begin from custom offset, e.g. 5000?

If switching from another backlog system to Azure DevOps, is it possible (in some admin settings) to set the start number/offset for auto-numbering of ids? Say for instance, that we have item id's in our old backlog up to 4000 and want to continue this numbering.
agibsen
1

votes
1

answer
27

Views

Azure DevOps REST call - How to find out my identity

We recently migrated from on prem TFS to Azure Devops in the cloud. I am updating my powershell scripts that I use to automate my work item tracking, moving them from api v3 to v5 and ensuring all my authentication/endpoints are working properly. I have the authentication setup and can make some GET...
Brandon McClure
1

votes
1

answer
37

Views

Azure Pipeline Publish Artifact - Artifact Name

In My Azure Pipeline, I am giving Build number format as Build_$(Date:yyyy.MM.dd)$(Rev:.rr) which gives my build number as Build_2019.04.04.05. I want to use same in Artifact Name property in Publish Artifact task. When I give Artifact Name: Build_$(Date:yyyy.MM.dd)$(Rev:.rr) it is not working. In...
Ziggler
1

votes
1

answer
32

Views

How to modify Azure Devops email notification template?

How to modify the build notification template in Azure Devops. Need to add some details in the notification body.
sree1611
1

votes
1

answer
54

Views

Using VS2019 with TFS2018 vnext build system

Does anybody know if it is possible to use VS2019 with TFS2018 vnext build system. You cannot select VS2019 in the build definition, but you can select 'Latest' as version for Visual Studio. Unfortunately, this does not select VS2019. I have tested this in a virtual machine with VS2017 and VS2019 in...
PainElemental
0

votes
0

answer
4

Views

Azure DevOps + LibMan + UNPKG Intermittent Error LIB010: Failed to download resource from unpkg.com

I've setup Continuous Integration on Azure DevOps but I keep getting an intermittent issue whereby libman fails to download a resource here's a few examples: ##[error]libman.json(0,0): Error LIB010: Failed to download resource from 'http://unpkg.com/[email protected]/dist/css/icons/dxiconsmaterial.w...
Smithy
0

votes
0

answer
5

Views

Are resource groups outbound IP address shared

We are trying to set up office 365 to send email from our azure account. Are our Outbound IPs shared with other azure users or not? https://docs.microsoft.com/en-us/azure/app-service/overview-inbound-outbound-ips To find out if the outbound IPs that are shown in the properties area of my portal are...
tvb108108
1

votes
1

answer
608

Views

Why doesn't “Compare with Unmodified” work in Visual Studio 2017?

Ran into this today, but I couldn't add my solution to the Visual Studio forum: https://developercommunity.visualstudio.com/content/problem/17952/team-explorer-git-compare-with-unmodified-not-work.html I was unable to compare my changes to the unmodified version via the 'Compare with Unmodified' con...
mdickin
1

votes
1

answer
260

Views

Get pull request attached to work item

I would like to access information about all pull requests that are linked to a particular work item. The relations on a work item result (e.g. https://.../_apis/wit/workItems/12345?$expand=all) shows links to the pull requests in this form: vstfs:///Git/PullRequestId/... How can I turn that relatio...
JoeGaggler
1

votes
3

answer
818

Views

How do you set the default reviewer for a Pull Request?

Not sure SO is the right place or this question but couldn't see any other stack exchange site that this would suit. So, in VSTS how do you change the default team / reviewer when a pull request is created? Update This appears to be set by the project/team selected at the top, not the repo. So if yo...
sr28
1

votes
1

answer
465

Views

VSTS Build - Conditional variable based on SourceBranchName

I would like to set the Build Number differently based on which branch initiated the build. For example: Push to 'Dev' branch, the build number is 3.x.x Push to 'Beta' branch, the build number is 2.x.x Push to 'Live' branch, the build number is 1.x.x
coryvb123
1

votes
1

answer
206

Views

How to programmatically get the list of all the Completed PullRequests in AzureDevOps?

I am using the following code to get the list of All the completed pull requests on a VSTS repository. However, the list of pull requests that is fetched, contains only a limited list of the pull requests, and not all of them. Any idea what am I doing wrong? Here is the code: /// /// Gets all the...
PiJei
1

votes
4

answer
353

Views

Duplicate key in provisioning profile causes build failure: error MSB4018

My Xamarin build tasks are failing in my Azure Dev Ops pipeline with: error MSB4018: The 'DetectSigningIdentity' task failed unexpectedly. error MSB4018: System.ArgumentException: An item with the same key has already been added. Key: com.apple.developer.associated-domains On opening the provisionin...
Magic Bullet Dave
1

votes
1

answer
198

Views

Using Environment Variables in a cURL request on Azure Devops

I'm trying to upload a zip file to Netlify with a command line task using cURL on Azure DevOps. Obviously I don't want to have my Netlify access token in the yaml file, so I've created a secret variable for it (using the UI designer) and mapped it using the syntax in the docs. However I keep gettin...
MrBliz
1

votes
2

answer
41

Views

How to delete the effect of a commit via PR?

TL;DR: I need to delete a commit from master, which must be done with a pull request. How is this done? There is a commit on master which needs to be removed because the changes it provides are bad. I cannot push a commit directly to master because of the branch policy. I have created a branch from...
Matt W
1

votes
1

answer
112

Views

Azure DevOps passing Dynamically assigned variables between build hosts

I'm using Azure DevOps on a vs2017-win2016 build agent to provision some infrastructure using Terraform. What I want to know is it possible to pass the Terraform Output of a hosts dynamically assigned IP address to a 2nd Job running a different build agent. I'm able to pass these to build variables...
stravze
1

votes
1

answer
83

Views

Is it possible to show progress for ARM deployment in Azure DevOps?

I have a pipeline in Azure DevOps. After building and testing stuff, I create Azure Resources in order to deploy the app there. I use Azure Resource Group Deployment task for that. It works, but in logs I see only this (for all the resouces I created): **********************************************...
psfinaki
1

votes
1

answer
37

Views

Finding what checkin broke a unit test

Some checkin over the last 3 days broke one of our unit tests (and why is not at all clear). I'm assuming the best way to find which check in is to pull the code in the branch as of 3 days ago, verify the test passes, then keep pulling for a checkin halfway between works & fails to find the checkin...
David Thielen
0

votes
0

answer
5

Views

When queuing an Azure DevOps Pipeline build via the REST API, is it possible to change the “Manual build for [user]” text?

When I queue a build in Azure DevOps Pipelines using the REST API, the build shows up in the build list as Manual build for [user] where [user] is the name of the user tied to the token with which the API request was made. Is it possible to replace this with custom text (e.g., Build for PR#1234 or...
Isaac
1

votes
1

answer
38

Views

What am I missing with my pod install? Xcode Build fails Azure Devops Pipeline

I am using an Azure Devops Build pipeline to build my Xcode workspace. It builds fine locally as well as if I import the repo and use it in AppCenter to build. But I want to use an external Git, thus using a Build Pipeline. It is pretty simple in terms of steps. 1 - Get Repo (finishes this step) 2 -...
K2SO Ghost Spirit
1

votes
1

answer
64

Views

Unable to check in project into VSTS Repository

I'm trying to check in an existing project into a fresh new repository on VSTS. I've connected to the repository in Team Services. When I right click my solution and select Add Solution to Source Control, I get the following errors. After that nothing happens. Any idea how to fix this?
Sam
1

votes
1

answer
295

Views

How to skip one project from multiple projects in one solution in vsts build definition, VSTS

I have a Web Application which consists of three projects under one solution. But, I want allow only two projects in Build definition to build through arguments in VSTS. Is it possible, If possible how I want to skip one project through command in Arguments?
Mani
1

votes
2

answer
379

Views

How do I automatically trigger email notification with custom message after deployment (in CD pipeline) in VSTS

I have a CD pipeline with Azure Deploy task and I want to trigger a email notification to developers after successful deployment but with custom message. I researched on 'Send Email' task but it requires an SMTP server (say google SMTP). is there a feature within VSTS to trigger a mail?
vignesh srinivasan
1

votes
1

answer
372

Views

VSTS Maven build - no JUnit tests run

[Update: Problem cause found! read below] Problem: VSTS Maven build does not seem to run JUnit, does not show any JUnit results, does not seem to produce any JUnit testreports. In VSTS, we have a Java project with a Contact and TestContact class with 1 testcase; source\module\src\main\java\nl\custom...
JDG
1

votes
1

answer
442

Views

VSTS/TFS extension reinstall after remove, The extension already exists

VSTS/TFS(2017) version id: 15.117.26714.0 I has uninstalled my custom extension, and it was removed this extensions list.Then I reinstalled itsef, alert 'The extension already exists'.Amazing, query the url http://{domain}/tfs/_apis/gallery/publishers/{publishers}/extensions/{extensionId}, I can get...
soulxy
1

votes
1

answer
358

Views

VSTS issues connecting to GHE (HTTP 403)

We haven't changed anything in VSTS (Visual Studio Team Services) and are suddenly getting HTTP 403 errors in our 'Get Sources' build step when trying to pull code from GHE (Github enterprise). 2018-01-10T01:45:07.5198700Z remote: Your account is suspended. Please check with your installation admin...
s g
1

votes
2

answer
295

Views

Code analysis changes if SonarQube full analysis report enabled in VSTS

I've been setting up SonarQube analysis for one of our builds in VSTS, and I've noticed that there's a difference in the code analysis / build warnings if the advanced option 'include full analysis report in build summary' is enabled in VSTS. We have a custom ruleset enabled for our local builds in...
Tom Anderson
1

votes
0

answer
285

Views

SonarQube: Configure VSTS to analysis GitHub Pull Requests

I am using VSTS for CI and CD. We have a workflow which involves pull requests in Github. These are automatically built and tested by VSTS. I am trying to add SonarQube analysis to this workflow. I have tried adding the SonarQube VSTS plugin from the marketplace and then passing the github parameter...
1

votes
0

answer
141

Views

VSTS URL load test results - understanding requests per second

I have a simple URL-based load test defined in VSTS (Visual Studio Online) that goes through 4 pages of the site I'm testing. I'm trying to understand how the tests are repeated because the Throughput chart is showing that it's making around 10,000 requests per second (blue line), regardless of the...
zemien
1

votes
1

answer
140

Views

Error when attempting to create VSTS API Service Hook Subscription

Everyone, I have been around and around about creating Visual Studio Team Services - Service Hook Subscriptions automagically via API. I can get the TFS publisher to work, but not the RM publisher. I am trying to create a hook subscription for Release Deployment Completed. Any examples I can find si...
KingAmongGeeks
1

votes
2

answer
61

Views

Deleting VSTS User From Active Directory

Microsoft Docs has substantive info on adding users to VSTS via Active Directory, but I'm not finding specific info on what happens when you delete a VSTS user from AD, or what ripple effects take place when you delete them from VSTS itself. MSFT says removing them from AD may make them still appear...
VSTSNOOB
1

votes
1

answer
719

Views

Run protractor e2e tests from Visual Studio Team Services

I'm having trouble trying to run Protractor e2e tests from VSTS within a release definition. Steps I have in my release definition are: Azure File Copy: This copies the source code from a Git repo to an Azure VM that will run the tests PowerShell on Target Machines: This executes a Powershell scrip...
Matthew
1

votes
0

answer
204

Views

vstest.console.exe crashing on UWP unit test project with “Data at the root level is invalid.”

Trying to run a UWP unit test project using vstest.console.exe, I generate the appx package using MSBuild, and call: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\TestPlatform> ./vstest.console.exe C:\builds\droplocation\Uwp.UnitTesting\AppPackages\Uwp.UnitT...
alek kowalczyk
1

votes
1

answer
263

Views

Custom Role in VSTS to allow Add Users

I’m trying to create a custom role to assign to users to allow them to add users to a project. MS’ documentation on this claims the custom role just needs to be “edit project-level information” and 'edit instance-level information' but that doesn’t work. In fact if I set Allow to all the p...
Rincey_nz

View additional questions