Hi All.

I have a external monitor job that I'm pushing the result of another job to 
it with curl and base on this link :

https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs

After I create the job I just need to run a curl command with the body 
encoded in HEX to the specified url and then a build will be created and 
the output will be added to it but what I get instead is part of my output 
in clear text and the rest in weird characters like so :

    Started
    Asking akamai to purge this urls:
    http://xxx/sites/all/modules/custom/uk.png     
http://aaaaaasites/all/modules/custom/flags/jp.png
    <html><head><title>401 Unauthorized</title>   
 </h�V C��&�G��� �C  V� WF��&��VC�� �� ���R  &R ��B  WF��&��VBF�  66W72F� 
B&W6�W&6S�� ���&�G�����F����F�RW&�F 
� 6�V6�7F GW2 �bF�R&W VW7B �2 ��F�RF��R F�v �B �2 ��6 �Ɩ�r & 6�w&�V�B ��"F� 
6�V6�7F GW2 �bF�RF�6�W@�v �F��r f�"  � � �F�W&vRF��6O 
request please keep in mind this is an estimated time
    Waiting for another 60 seconds
    Asking akamai to purge this urls:
    ...
    ..
    ..

This is how I'm doing it :

    export output=`cat msg.out|xxd -c 256 -ps`

    curl -k -X POST -d "<run><log 
encoding=\"hexBinary\">$output</log><result>0</result> 
 <duration>2000</duration></run>" 
https://$jenkinsuser:[email protected]/jenkins/job/akamai_purge_results/postBuildResult
 
-H'.crumb:c775f3aa15464563456346e'

If I cat that file is all fine and even if I edit it with vi I can't see 
any problem with it.

Do you guys have any idea how to fix this ?

Could it be a problem with the hex encoding ? ( I tried hex/enc/dec pages 
with the result of xxd and they look fine)

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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to