Take Jenkins out of the equation for a moment. How would you run this command from a command line prompt in windows?
There is an answer to that, but then your input is going to have to be munged to match that input which is not so user friendly. I would guess that whatever maven plugin reads that is not really expecting it to be a multiline string as they are a level of pain to handle in various scripts etc and if it can handle multiple lines (and indeed expects them) then it would be able to take input from a file via a different parameter which you can create from the parameter instead. /James On Fri, 4 Aug 2023, 17:45 idan...@gmail.com, <idan1...@gmail.com> wrote: > Hi, > > I try and this is what I got : > *19:34:43* [multiline] $ cmd.exe /C > "C:\jenkins\tools\hudson.tasks.Maven_MavenInstallation\3.3.9\bin\mvn.cmd -f > pom.xml '"-DDescription=Line1 \ *19:34:43* Line2"' ... > > So the maven is not running > > On Sunday, 30 July 2023 at 11:37:33 UTC+3 Arnaud wrote: > >> Hi, >> >> Did you try with backslash? >> >> Line1 \ >> Line2 >> >> Regards >> >> Arnaud >> >> Le sam. 29 juil. 2023, 21:15, idan...@gmail.com <idan...@gmail.com> a >> écrit : >> >>> Hi, >>> >>> I have Job In jenkins that run Maven >>> I add multi-line parameter >>> >>> The problem is that when entering multiple lines when run the maven >>> command it split the command and the maven command is cut in the middle >>> >>> If I try for example send : >>> Line1 >>> Line2 >>> >>> The maven command stop at Line1 >>> and LIne2 appear as different command with different timestamp >>> >>> How should I send the multi-line >>> >>> Thanks >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to jenkinsci-use...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/a34c275b-c39f-46f8-8e09-83fc70f5d3bbn%40googlegroups.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/a34c275b-c39f-46f8-8e09-83fc70f5d3bbn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/2bb9ab1d-0e3e-4dd3-b6cc-15ee0ab8d663n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/2bb9ab1d-0e3e-4dd3-b6cc-15ee0ab8d663n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPzq3peCXwK6sSA9Mwgg%3DL57Q%2BTNF5gxcyMihNAWKp7SJ5SBHA%40mail.gmail.com.