'How to create a new line in a CRON in jenkins

I have a question about new line in cron trigger in jenkins

I create a dynamic string such as

'cron': 'TZ=Europe/Berlin\n* * 1-5\n0 5 * * *\n'

using groovy script I want to set jenkins trigger, but the problem is, \n is not working.

Did I something wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source