pizzaTime
5 years agoOccasional Contributor
Push a readme.md to confluence using confluence APIs
Hello,
So I'm trying to push readme to confluence, except that Confluence APIs accepts the body as json, but my readme is a multiline text.. In confluence I have a waiting plugin to convert the text into a well-formed readme :)
So I'm trying to convert a multiline text into a single line so that I can automate pushing all readme to confluence.
One of my problem now is to locate the carriage return , and convert it into "\\n" but I'm new to groovy and I don't know how to do that.
One of the future struggle is going to be : how to parse through directories to locate readme.
many thanks
pizzaTime