From 187fb83ebc2d251e358b366d4341953199477aa8 Mon Sep 17 00:00:00 2001
From: shlomomdahan <64103471+shlomomdahan@users.noreply.github.com>
Date: Wed, 30 Oct 2024 19:57:40 -0400
Subject: [PATCH] extract inline script in
---
.../BuildCardExtension/build-card-script-helpers.js | 7 +++++++
.../extension/BuildCardExtension/buildCardHelpers.jelly | 9 +--------
2 files changed, 8 insertions(+), 8 deletions(-)
create mode 100644 src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-script-helpers.js
diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-script-helpers.js b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-script-helpers.js
new file mode 100644
index 00000000..2d48ffaa
--- /dev/null
+++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-script-helpers.js
@@ -0,0 +1,7 @@
+Handlebars.registerHelper('startScript', function() {
+ return new Handlebars.SafeString("");
+});
+
+Handlebars.registerHelper('endScript', function() {
+ return new Handlebars.SafeString("");
+});
diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardHelpers.jelly b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardHelpers.jelly
index 2bf013e3..e71a4ee4 100644
--- a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardHelpers.jelly
+++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardHelpers.jelly
@@ -7,17 +7,10 @@
By default we just include helpers to append script tags to your build card
-->
+
- Handlebars.registerHelper('startScript', function() {
- return new Handlebars.SafeString("");
- });
- Handlebars.registerHelper('endScript', function() {
- return new Handlebars.SafeString("");
- });
-
]]>
\ No newline at end of file