我正在将一组特定的构建从现有的Visual Studio Team Service项目移动到新项目.不幸的是,我找不到将构建定义从一个项目迁移到另一个项目的方法.似乎没有导入/导出功能或其他机制.
有没有办法移动这些而无需手动重新创建新项目中的构建?
我正在尝试使用vsts-npm-auth获取 VSTS 包存储库的身份验证令牌。在我的开发机器上我可以运行命令
npm install -g vsts-npm-auth
vsts-npm-auth -config path-to-my\.npmrc
它成功地为我提供了身份验证令牌。我现在尝试将其重新创建为 VSTS 上的构建步骤,因此我创建了 powershell 脚本auth-vsts.ps1
$npmrcFile = "$PSScriptRoot\path-to-my\.npmrc";
npm install -g vsts-npm-auth;
vsts-npm-auth -config $npmrcFile;
Run Code Online (Sandbox Code Playgroud)
并将其添加为 powershell 任务。但是任务失败如下
2017-05-30T09:37:41.1082686Z ##[section]Starting: auth-vsts
2017-05-30T09:37:41.1092712Z ==============================================================================
2017-05-30T09:37:41.1092712Z Task : PowerShell
2017-05-30T09:37:41.1092712Z Description : Run a PowerShell script
2017-05-30T09:37:41.1092712Z Version : 1.2.3
2017-05-30T09:37:41.1092712Z Author : Microsoft Corporation
2017-05-30T09:37:41.1092712Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613736)
2017-05-30T09:37:41.1092712Z ==============================================================================
2017-05-30T09:37:41.1112679Z ##[command]. 'd:\a\1\s\auth-vsts.ps1'
2017-05-30T09:37:47.3792461Z C:\NPM\Modules\vsts-npm-auth -> C:\NPM\Modules\node_modules\vsts-npm-auth\bin\vsts-npm-auth.exe
2017-05-30T09:37:47.3792461Z C:\NPM\Modules
2017-05-30T09:37:47.3802239Z `-- vsts-npm-auth@0.25.0
2017-05-30T09:37:47.3802239Z
2017-05-30T09:37:47.3802239Z
2017-05-30T09:37:47.3802239Z vsts-npm-auth v0.25.0.0 …Run Code Online (Sandbox Code Playgroud) 我已经为我的 github 存储库之一设置了 azure 管道。除了构建状态徽章外,一切都完美无缺。它没有正确显示,似乎无法加载图像。
目前正在显示:
markdown 文件中使用的代码由 azure devops 自动生成
[](https://dev.azure.com/larsbehl/larsbehl/_build/latest?definitionId=1&branchName=master)
Run Code Online (Sandbox Code Playgroud) 我们正在使用TFS内部的新VSO/VSTS样式构建,截至昨天的2015 Update 1.
在发布构建工件阶段,我们希望从根条2子文件夹中复制所有文件/文件夹.
即:
$\somefilestopublish1\...
$\somefilestopublish2\...
$\somefilestoexclude1\...
$\somefilestoexclude2\...
Run Code Online (Sandbox Code Playgroud)
目前我有**\*内容参数,显然会发布一切.我尝试;-:<exclude_pattern>按照谷歌搜索的建议添加,但刚停止所有输出并导致一个空文件夹.
有没有办法使用minimatch表达式来排除文件夹,或者我需要交换显式选择要发布的文件夹.
我刚刚注意到 Visual Studio Build任务如下:
对于常见设置(如解决方案文件)的参数对我来说似乎是一个好主意,因为一些参数用于超过1个任务......但老实说我不喜欢使用通配符,我宁愿使用解决方案文件的路径.
如果我点击链接设置我无法编辑解决方案设置的值,有没有办法更改它?
visual-studio visual-studio-2015 azure-devops azure-pipelines-build-task azure-pipelines
我有一个相当简单的scenarion,一个主分支,然后当我想做一个生产版本时,我想用例如标记一个提交.VX.XX
CI/CD管道如下所示
构建 - >临时环境 - >生产环境
我在将标签推送到git时找到了此链接触发器构建.我只是无法弄清楚如何使它工作.它根本不适合我.
是否可以,如何在将标记添加到提交时配置VSTS以启动构建?
git azure-devops azure-pipelines azure-pipelines-release-pipeline
如何将手动干预步骤添加到多阶段 Azure Devops YAML 管道中?
在詹金斯你可以做一些事情:
stage ('approve-prod') {
steps {
input "Approve deployment to production?"
}
}
Run Code Online (Sandbox Code Playgroud)
我正在寻找 Azure Devops YAML 中的等效项。
注意:这是针对新发布的多阶段 Azure Devops 管道,而不是旧式发布管道。相关公告在这里https://devblogs.microsoft.com/devops/whats-new-with-azure-pipelines/
My repository in my organisation's devops project contains a lot of .net solutions and some unity projects as well. When I run my build pipeline, it fails due to several of these:
Error MSB3491: Could not write lines to file "obj\Release\path\to\file". There is not enough space on the disk.
I would like the pipeline to only checkout and fetch parts of the repository that are required for a successful build. This might also help with execution time of the pipeline …
我正在尝试使用 Azure DevOps 管道构建在 .NET 5.0 中构建一个项目,但收到此错误
2020-11-14T01:59:45.8238544Z [command]"C:\Program Files\dotnet\dotnet.exe" build D:\a\1\s\XXX.csproj "-dl:CentralLogger,\"D:\a\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.178.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"*ForwardingLogger,\"D:\a\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.178.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\""
2020-11-14T01:59:46.1472016Z Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET
2020-11-14T01:59:46.1473316Z Copyright (C) Microsoft Corporation. All rights reserved.
2020-11-14T01:59:46.1473902Z
2020-11-14T01:59:46.6006398Z Determining projects to restore...
2020-11-14T01:59:47.2059773Z Restored D:\a\1\s\XXX.csproj (in 234 ms).
2020-11-14T01:59:47.2119638Z 1 of 2 projects are up-to-date for restore.
2020-11-14T01:59:47.3209350Z ##[error]C:\Program Files\dotnet\sdk\3.1.403\Microsoft.Common.CurrentVersion.targets(1177,5): Error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your …Run Code Online (Sandbox Code Playgroud) 我正在使用 YAML 和一些作业设置一个天蓝色管道,我有一项作业依赖于多个其他作业。
工作:
工作:一...
工作:B...
工作:C
取决于:A、B
运行此代码时出现错误“作业工件取决于未知作业 A、B”。
azure-pipelines ×10
azure-devops ×8
git ×2
.net ×1
.net-5 ×1
azure ×1
azure-pipelines-release-pipeline ×1
c# ×1
github ×1
npm ×1
tfsbuild ×1
yaml ×1