We have used we script in yaml but am getting email with oneline content ( body) I need line breaks in email body.
- template: /templates/python-v1
- template: /templates/sendEmail
parameters:
to: ${{ parameters.to }}
body: "Hi Team, This pull request has encountered errors: $(ERRORMESSAGE) Kindly address these issues and resubmit the pull request. Thank you. Sincerely, [DevOps Team]"
from : ${{ parameters.from }}
subject : ${{ parameters.subject }}
We have used we script in yaml but am getting email with oneline content ( body) I need line breaks in email body.
You can use "|" after
bodyto define the content.Main yaml:
Template yaml: