VS402913:您已向环境添加,删除或重命名任务 [英] VS402913: You have either added, removed or renamed tasks to the environment

查看:104
本文介绍了VS402913:您已向环境添加,删除或重命名任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的TFS 2015(更新2)(内部部署)中,我们创建了自定义任务。其中一个任务是设置一些可以在发布环境中的其他步骤/任务中使用的变量。

In our TFS 2015 (update 2) (on-premise) we have created custom tasks. One of the tasks is to set some variables which can be used during the other steps/tasks in the Release Environment.

当我们在环境中添加此任务(作为第一步)时发布定义。并创建发布。无法在创建的版本中保存更改,因为在按下保存按钮后会显示一条红色消息:

When we add this task (as the first step) in an Environment of the Release Definition. And create the Release. It is not possible to save changes in the created Release, because after pressing the save-button a red message is shown:

VS402913: You have either added, removed or renamed tasks to the environment

因此,当发布失败并且您希望对其中一个步骤/任务进行微小更改时,无法保存该更改。

Thus when a release failed and you want to make a minor change to one of the steps/tasks it is not possible to save that change.

您当然可以对发布定义本身进行更改,但是您必须创建一个新版本并从头开始。

You can of course make the change to the Release Definition itself, but then you have to create a new release  and starting all over.

(GeneralVariables.ps1中powershell的简短版本)是:

The (short version of the) content of the powershell in the GeneralVariables.ps1 is:

$Name = 'TFSRMInstallPath'
$Value = "D:\TFSRM\Install\$env:Release_ReleaseName"

Write-Host "##vso[task.setvariable variable=$Name;]$Value"


在我们的自定义任务中,我们收到VS402913错误的代码有什么问题?

What is wrong with this code in our custom task that we get the VS402913 error?

提前致谢

- 安德烈

推荐答案

嗨A.AontwSR,

Hi A.AontwSR,

感谢您在此发帖。

您对此版本做了哪些更改?您能否将扩展程序(任务)上传到OneDrive并在此处共享链接(如果可以的话)?这样我就可以尝试在我的机器上重现您的问题。我建议您可以尝试创建一个新的版本
定义,然后只将自定义任务添加到环境中,之后再次检查结果。

What change did you do to the Release? Could you please upload the extension(Task) to OneDrive and share a link here(If it is possible for you)? So that I could try to reproduce your issue in my machine. And I suggest that you could try to create a new release definition, then only add the custom task to the a environment, after that check the result again.

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于VS402913:您已向环境添加,删除或重命名任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆