2

Getting date locally by

DATE=`date +%Y-%m-%d`

works fine, but at Team City the same script returns 1m13. I think, because of 13/08/18. Any ideas will be helpful.

1
  • 1
    I can't think of any circumstances under which date +%Y-%m-%d would output 1m13.
    – chepner
    Commented Aug 13, 2018 at 16:05

1 Answer 1

1

Have found a solution. TeamCity uses percent signs for its properties. So to use % in TeamCity we should escape it with other %, i.e. for % it must be %%.

1
  • That's great that you found the answer to your problem @alexdrob, you should now accept your own answer as the answer to the question.
    – Nanhydrin
    Commented Aug 29, 2018 at 13:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.