Can't get basic Powershell script running inside Team City

后端 未结 3 1422
不知归路
不知归路 2020-12-16 16:05

Here\'s my configuration: \"enter

On the build log, I only see the output of the first

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 17:02

    You could try putting the brace opening the block on the same line as the If.

    I.e.,

    If ('1' -eq '1') {
        ...
    }
    Else {
        ...
    }
    

    That's the usual styling you see with Powershell, and obviously, putting the braces on the next line can cause problems.

提交回复
热议问题