Hi all,

I am trying to somehow connect my jelly template used by Extended
Email Notification plugin (https://wiki.jenkins-ci.org/display/JENKINS/
Email-ext+plugin) to use Jenkins Remote API to display changes for
every build. For now, I am simply trying to display XML generated by
Remote API with this code:

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
xmlns:d="jelly:define" xmlns:u="jelly:util">
    ...
        <u:loadText uri="https://my-jenkins/job/my-job-name/1/api/xml";
var="result" />
        <pre>${result}</pre>
    ...
</j:jelly>

It fails, and I get message: "JellyException: null:72:103: Could not
find uri: https://my-jenkins/job/my-job-name/1/api/xml"; despite the
fact, that URL exists. What may i be doing wrong?

Another concern is that this URL in my Jenkins is secured - is it
posible to provide HTTP Basic Authentication within jelly script?

Thanks in advance,
Wojtek

Reply via email to