How to preveent command line build step to log the cmd file itself?

Hi, 

I have a build step as show in below image:

In full build log, I can see below logs:

```

[Step 1/3] Content of D:\BuildAgent\temp\agentTmp\custom_script15362566582484714120.cmd file:

@echo off
rem This is a custom script written by TeamCity using GBK charset.
@echo off

cd Library
if exist com.unity.addressables rmdir /s /q com.unity.addressables
mkdir com.unity.addressables

```

How can I stop TeamCity to print the cmd file into the log?

0
1 comment

Hello,

For your information, this output should be visible in build log in Verbose mode only. In any case, if you want to disable it completely, you can add the following configuration parameter to the build configuration or project:

teamcity.internal.commandLineRunner.logScriptContent=false

Please let me know if this works for you or if you have any other questions.

Thanks,

Guilherme

 

 

 

0

Please sign in to leave a comment.