Skip to content

Instantly share code, notes, and snippets.

@jeremy-page
Forked from lyuboraykov/printjenkins.groovy
Created January 13, 2020 16:54
Show Gist options
  • Save jeremy-page/d6a5a5cfa1a99109c4c962a9f08aa8f9 to your computer and use it in GitHub Desktop.
Save jeremy-page/d6a5a5cfa1a99109c4c962a9f08aa8f9 to your computer and use it in GitHub Desktop.

Revisions

  1. @lyuboraykov lyuboraykov revised this gist Aug 8, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion printjenkins.groovy
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,4 @@ def config = new HashMap()
    def bindings = getBinding()
    config.putAll(bindings.getVariables())
    out = config['out']
    GitConfigurator.run(out)
    out.println "Printed do Jenkins console."
  2. @lyuboraykov lyuboraykov created this gist Aug 8, 2014.
    7 changes: 7 additions & 0 deletions printjenkins.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    def out
    def config = new HashMap()
    def bindings = getBinding()
    config.putAll(bindings.getVariables())
    out = config['out']
    GitConfigurator.run(out)
    out.println "Printed do Jenkins console."