Send a new line in a comment to Conduit API from Jenkins


#1

Hello,

I have a Jenkins build and would like to get a Phabricator comment when some steps occur. That is already happening. However I can’t sent a new line in the message.

Jenkins build invokes a Jenkins trigger that call a command line shell with:

curl https://review.feedzai.com/api/differential.createcomment -d api.token="api.token" -d revision_id=$PHABRICATOR_ID -d message="$MESSAGE"

Where $PHABRICATOR_ID and $MESSAGE are strings defined in the Jenkins build.

How can I add new line in the message variable?

\n and <br> have no effect.


Wrongly closed question
#2

This is the same question as https://discourse.phabricator-community.org/t/send-a-new-line-in-a-comment-to-conduit-api/2225 and has the same answer.


#3