TFS UPD3版本中的批处理脚本任务错误 [英] Batch Script Task error in TFS UPD3 Release

查看:95
本文介绍了TFS UPD3版本中的批处理脚本任务错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我在发布定义(TFS 2015 UPD3)中使用批处理脚本任务来运行SQL脚本。在Argument Section中,我使用变量来指定服务器名称,用户帐户和用户密码(标记为密码字段)。

解决方案

您好Audberto,


秘密变量是:




  • 加密2048-位RSA密钥。



  • 未返回给客户端。它们会自动从构建或发布的任何日志输出中屏蔽掉。 



  • 未解密到环境变量中。因此,默认情况下,您的构建步骤运行的脚本和程序不会被授予访问权限。



  • 解密以供构建步骤访问。所以你可以在密码参数中使用它们(例如


    最好的问候


Hi all.

I'm using Batch Script Task in a Release Definition (TFS 2015 UPD3), to run a SQL Script. In Argument Section, I'm using variables in order to specify Server Name, User account and User Password (marked as a Secret field).

解决方案

Hi Audberto,

Secret variables are:

  • Encrypted with at rest with a 2048-bit RSA key.

  • Not returned back to the client. They are automatically masked out of any log output from the build or release. 

  • Not decrypted into environment variables. So scripts and programs run by your build steps are not given access by default.

  • Decrypted for access by your build steps. So you can use them in password arguments (for example Build and Deploy your Java application to an Azure web app and also pass them explicitly into a script or a program from your build step (for example as


(password)).

To use Secret variables, Please refer to "Define and modify your variables in a script" section this document:

https://www.visualstudio.com/en-us/docs/build/define/variables#secret-variables

Best Regards


这篇关于TFS UPD3版本中的批处理脚本任务错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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