cURL and API

14 views
Skip to first unread message

Jedimaster_att

unread,
Aug 19, 2016, 1:35:31 PM8/19/16
to jenkins...@googlegroups.com
I have successfully written a shell script that pulls down the job xml using
cURL so i can edit it. However, when i return it to Jenkins using cURL, my
shell script is in a single line and not in its original form that Linux
needs it to be in to be red. Can anyone point me in the right direction to
fix this?
Thank you.



--
View this message in context: http://jenkins-ci.361315.n4.nabble.com/cURL-and-API-tp4835436.html
Sent from the Jenkins users mailing list archive at Nabble.com.

Qazwart

unread,
Aug 19, 2016, 3:06:28 PM8/19/16
to jenkins...@googlegroups.com
Are you using a PC and editing the file on Linux?

You could be messing up your End of Lines. It shouldn’t matter with XML files. The end of lines don’t matter.

However, you can always reformat the files using xmllint and the -format option.
> --
> 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/1471628066359-4835436.post%40n4.nabble.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages