Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17708

Expose scriptler scripts via token macro token

    Details

    • Similar Issues:

      Description

      It would be nice to be able to store scripts in Scriptler and then use them in places that can consume Token Macro's.

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment -

          nice idea, but I'm unsure how to deal with the security issues this would bring along...
          after all the script would expose internal information to users not allowed to.
          ...or do I see it wrong?

          Show
          domi Dominik Bartholdi added a comment - nice idea, but I'm unsure how to deal with the security issues this would bring along... after all the script would expose internal information to users not allowed to. ...or do I see it wrong?
          Hide
          slide_o_mix Alex Earl added a comment -

          Agreed, the security aspect would be tricky. I am not familiar with how Scriptler currently handles security, does it have different levels? Perhaps you make another level for this so o ly certain script can be used? The idea of using a Scriptler script in an email was submitted to me for email-ext, but I thought if Scriptler could expose a token that would be useful in many places.

          Show
          slide_o_mix Alex Earl added a comment - Agreed, the security aspect would be tricky. I am not familiar with how Scriptler currently handles security, does it have different levels? Perhaps you make another level for this so o ly certain script can be used? The idea of using a Scriptler script in an email was submitted to me for email-ext, but I thought if Scriptler could expose a token that would be useful in many places.
          Hide
          domi Dominik Bartholdi added a comment -

          yeah, maybe we can mark some scripts to be public an these would then be fine to be used in a macro

          Show
          domi Dominik Bartholdi added a comment - yeah, maybe we can mark some scripts to be public an these would then be fine to be used in a macro
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          .gitignore
          pom.xml
          src/main/java/org/jenkinsci/plugins/scriptler/ScriptlerManagment.java
          src/main/java/org/jenkinsci/plugins/scriptler/tokenmacro/ScriptlerTokenMacro.java
          src/main/java/org/jenkinsci/plugins/scriptler/util/GroovyScript.java
          src/main/resources/org/jenkinsci/plugins/scriptler/Messages.properties
          src/test/java/org/jenkinsci/plugins/scriptler/ScriptlerManagementHelper.java
          src/test/java/org/jenkinsci/plugins/scriptler/tokenmacro/ScriptlerTokenMacroTest.java
          http://jenkins-ci.org/commit/scriptler-plugin/1f5a83c5ab43c04a00113f087bb0d22db0b87193
          Log:
          [FIXED JENKINS-17708] Expose scriptler scripts via token macro token

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: .gitignore pom.xml src/main/java/org/jenkinsci/plugins/scriptler/ScriptlerManagment.java src/main/java/org/jenkinsci/plugins/scriptler/tokenmacro/ScriptlerTokenMacro.java src/main/java/org/jenkinsci/plugins/scriptler/util/GroovyScript.java src/main/resources/org/jenkinsci/plugins/scriptler/Messages.properties src/test/java/org/jenkinsci/plugins/scriptler/ScriptlerManagementHelper.java src/test/java/org/jenkinsci/plugins/scriptler/tokenmacro/ScriptlerTokenMacroTest.java http://jenkins-ci.org/commit/scriptler-plugin/1f5a83c5ab43c04a00113f087bb0d22db0b87193 Log: [FIXED JENKINS-17708] Expose scriptler scripts via token macro token

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              slide_o_mix Alex Earl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: