Get build information in StaticUIExtensions

Hello,

I can't figure out a way to access build information within <script> section for StaticUIExtensions plugin. For example, I created show-triggeredBy.html with this content (sorry about the formatting - the forum editor messed up whitespace):

<script>
(function ($) {
var regex = /((#\d+)|N\/A)/g

function showTriggeredBy() {
$("span").each(function () {
var div = $(this);
var oldHtml = div.html();
var newHtml = oldHtml.replace(regex, '$1 ' + '(triggered by: X)');
if (oldHtml !== newHtml) div.html(newHtml);
});
}

$(document).ready(showTriggeredBy);
})(window.jQuery);
</script>

How can I replace X with actual "triggered by" information? How can I access other information about a build?

 

Thanks,

Oleg.

0

Please sign in to leave a comment.