The docs mention :XML, :JSON, and :HTML, but I have a URL that returns plain text. I'd like to write
global {
datasource tests_executed:TEXT <- "http://saucelabs.com/rest/v1/info/counter"
}
rule how_many_tests {
pre {
count = datasource:tests_executed("");
msg = "Executed #{count} tests.";
}
notify("Saucelabs",msg) with sticky=true;
}
Are :XML, :JSON, and :HTML the only valid formats for a datasource?