如何从构建步骤永久更改TeamCity 6中的系统属性 [英] How to permanently change a system property in TeamCity 6 from a build step

查看:96
本文介绍了如何从构建步骤永久更改TeamCity 6中的系统属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一种在TeamCity中更改属性的方法:

I have found a way to change a property in TeamCity:

##teamcity[setParameter name='ddd' value='fff']

但是不幸的是,此更改仅在当前版本中发生.我希望此更改为永久更改,但TeamCity仅针对当前正在运行的版本更改此更改.

But unfortunately this change only occurs for the current build. I want this change to be PERMANENT, but TeamCity only changes this for the current running build.

我如何对TeamCity中的系统属性进行永久更改?

How do I make a permanent change to a system property in TeamCity?

推荐答案

使用TeamCity 6.5的唯一解决方案是使用python脚本以编程方式编辑Xml配置文件.

The only solution using TeamCity 6.5 was to edit the Xml configuration file programmatically using a python script.

构建步骤调用python脚本以在每次构建期间更改变量.

A build step calls the python script to change the variable during each build.

这篇关于如何从构建步骤永久更改TeamCity 6中的系统属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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