Skip to content

Commit

Permalink
[JENKINS-74057] Extract inline script block in `BuildCardExtension/bu…
Browse files Browse the repository at this point in the history
…ildCardHelpers.jelly` (#146)
  • Loading branch information
shlomomdahan authored Nov 8, 2024
1 parent 313a0aa commit 66867ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<script>");
});

Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</script>");
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,5 @@
By default we just include helpers to append script tags to your build card
-->
<![CDATA[
<script type="text/javascript">
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<scr" + "ipt>");
});
Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</scr" + "ipt>");
});
</script>
]]>
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.BuildCardExtension.build-card-script-helpers"/>
</j:jelly>

0 comments on commit 66867ef

Please sign in to comment.