syntax highlight and seperate script files in runners
One of the main issues with team city is the lack of ability to work with . a normal IDE and the lack of an easy way to make a script that I can run on both my machine and on team city easily. I opened up the saved configuration and sadly discovered that when I edit a code directly in team city.
for example python code. it is not created in a seperate file, and in the config we have:
<param name="python-script-code">
<![CDATA[import platform .....
</param>
the code in the python-script-code is visible and editable in the team city UI but I cannot run it by bash or using IDEA
why isn't the script saved in a seperate file? like this?
<param name="python-script-code"python-script-code-source="STEPID.py">
</param>
STEPID.py should be a normal python file
any save change in web ui should be displayed in idea and vice versa
Please sign in to leave a comment.
Hi Nahum,
there is a couple points here to be made. First, the "python runner" is not bundled with teamcity, it's provided by an external party. This means that we have little control over the plugin and how it handles anything. If you would like to see changes in a third party runner, please report it to the developer.
On the other hand, teamcity stores the build configurations in XML files. It has little knowledge about how they are configured, or what they contain, so it can only store it as plain text, it cannot decide to store arbitrary fields in specific files if the runner doesn't do it itself.
The recommended approach, while it doesn't allow to change them in the UI, is to simply have it as your own file in the repository and trigger it on the server via the file instead of as a script. If you need to do changes, simply run them, commit and the server will pick it up automatically. You can also use remote runs and private builds to not alter the general build history.