azure-pipelines-build-task

Azure DevOps - Custom Build Task Visibility

岁酱吖の 提交于 2019-12-10 18:28:48
问题 I'm learning Azure DevOps. I'm interested in creating a custom build task. My question is, is it possible to create a private, custom build task? In other words, I only want my build task to be visible within my organization. Is it possible to set custom build task visibility to certain scopes (i.e. project, groups, organization, etc.)? 回答1: You can manage tasks within an account with the tfx command line tool, including uploading your own. You don't need to publish an extension to the

VS Test failing in Pipelines with missing 'Microsoft.NET.Test.Sdk'

末鹿安然 提交于 2019-12-10 14:52:43
问题 I'm getting a failed builds due to the Visual Studio Test step failing in my Build Pipeline. I have a simple .NET Core v2.1 class library and associated MS Test library. I have 2 steps in my pipeline: A .NET Core build step, and A Visual Studio Test step Both projects target the netcoreapp2.1 framework, see below for .csproj files. I have tried enabling and disabling the Code coverage option, but this make no difference. Thanks in advance, Kaine .csproj files Main Project <Project Sdk=

VSTS Build vNext NuGet custom package source

孤街浪徒 提交于 2019-12-10 14:41:55
问题 We have an Azure Entreprise Agreement with a main subscription to which a VSTS account is bound. We have setup the Package Management extension in order to host some usefull packages for diferent projects. For each customer, we create a subscription in this EA and a VSTS account bound to it. We build our customer projects on the Hosted build agent of the latter subscription. But when it's time for the build process to restore NuGet packages (using Nuget Installer task) that are stored on the

Azure DevOps extension custom UI

☆樱花仙子☆ 提交于 2019-12-08 11:37:40
问题 I've been tasked to develop an extension for Azure DevOps to automate building process - a custom Build Task. The caveat is that in reality what I am developing is a series of build task, each containing regular inputs. But for historical reasons, all these build tasks should be grouped and the user would be able to choose the correct one from a drop-down list on the tasks' page in the pipeline settings. The issue being is that the change in the drop down should hide SOME of the inputs and

Display HTML content in VSTS/TFS build summary without using contribution in manifest file

坚强是说给别人听的谎言 提交于 2019-12-08 11:36:54
问题 I have developed VSTS extension and I need to display graphical content (HTML page) in my VSTS/TFS summary page without using contribution in manifest file. Reason that led me to reject this option (e.g. ms.vss-build-web.build-results-section) is that when we are installed our extension, even if it is not included in current build task list, summary section defined in contribution started to appear in build summary.And this cause bad user experience. I observed that some extensions such as

VSTS build summary tab with visible condition or Task dependency

戏子无情 提交于 2019-12-08 03:33:27
问题 I try to add new custom tab to summary page for build result, but which will be added only for builds with my custom build Task. For example, Task "publish artifacts", only if this task was added, the tab "artifacts" added in summary page. I want the same behavior for my task and tab. For now, I've just added in vss-extension.json, in "contributions" { "id": "build-info-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view", "targets": [

Create AD application with VSTS task

好久不见. 提交于 2019-12-08 03:08:27
问题 I am trying to create a VSTS task, which should create an AD application. Taken the DeployAzureResouceGroup as a sample, I have created to following script: [CmdletBinding()] param() Trace-VstsEnteringInvocation $MyInvocation Import-VstsLocStrings "$PSScriptRoot\Task.json" $connectedServiceNameSelector = Get-VstsInput -Name "connectedServiceNameSelector" -Require $connectedServiceName = Get-VstsInput -Name "connectedServiceName" $connectedServiceNameClassic = Get-VstsInput -Name

TFS 2017 build as code

自作多情 提交于 2019-12-07 16:28:56
问题 How I can configure the build tasks in 2017 within "build" and "release" as code? I am searching for something like the Jenkinsfiles for the Jenkins Pipelines. Use case is: I need to validate params and then decide which tasks I call in which order etc. based on globally passed parameters Don't have the only source of changes in a web UI Have the configuration in source control Is there may be a possibility or a Plugin available doing this? 回答1: There's no out of the box way. There are

Incremental build VSTS for files changed only (Wordpress)

巧了我就是萌 提交于 2019-12-07 13:47:44
问题 I have a build and release pipeline for Wordpress php files, but I only want to create a build for the files changed in source control. I am not using a Visual Studio Build task as this does not apply in case of php files I guess. Here is how the pipeline is configured: Currently under the build I am using publish artifacts only from $(Build.SourcesDirectory) and under the release pipeline I am copying those artifacts to the website using FTP upload. Since the amount of files is larger than

Build error in Xcode on cloud-hosted Mac on VSTS

给你一囗甜甜゛ 提交于 2019-12-07 08:17:07
问题 I'm getting following error while building my project on cloud no such module 'RxCocoa' import RxCocoa ** BUILD FAILED ** The following build commands failed: CompileSwift normal arm64 CompileSwiftSources normal arm64com.apple.xcode.tools.swift.compiler (2 failures) Error: /usr/bin/xcodebuild failed with return code: 65 the reason is same as building on local machine when frameworks are not added in 'Link Binary With Libraries' then Xcode throw this error. So my question is how to fix this