[JIRA] (JENKINS-39592) Unable to use global function defined within library project

2016-11-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 As discussed in the plugin documentation, for this case you should pass in this, not steps, as execEcho is a global variable not a step.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-39592  
 
 
  Unable to use global function defined within library project   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 

[JIRA] (JENKINS-39592) Unable to use global function defined within library project

2016-11-08 Thread ricardojoaor...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ricardo Reis updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39592  
 
 
  Unable to use global function defined within library project   
 

  
 
 
 
 

 
Change By: 
 Ricardo Reis  
 
 
Environment: 
 workflow-cps-global-lib-plugin: version 2.4jenkins: 2.21  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39592) Unable to use global function defined within library project

2016-11-08 Thread ricardojoaor...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ricardo Reis updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39592  
 
 
  Unable to use global function defined within library project   
 

  
 
 
 
 

 
Change By: 
 Ricardo Reis  
 
 
Environment: 
 workflow-cps-global-lib-plugin : version  2.4jenkins :  2.21  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39592) Unable to use global function defined within library project

2016-11-08 Thread ricardojoaor...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ricardo Reis updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39592  
 
 
  Unable to use global function defined within library project   
 

  
 
 
 
 

 
Change By: 
 Ricardo Reis  
 

  
 
 
 
 

 
 Defining a shared library with this structure:{code} +- src |   +- org |   +- foo |   +- Bar.groovy  # for org.foo.Bar class +- vars |   +- execEcho.groovy{code}Where Bar.groovy is:{code}class Bar {def stepsBar(steps) { this.steps = steps)def doEcho(message) { steps.execEcho message }}{code}and execEcho.groovy is{code}def call(message) {  echo message}{code}Using this code within a pipeline{code}...def bar = new Bar(steps)bar.doEcho("Hello World!")...{code}Fails with: {code}java.lang.NoSuchMethodError: No such DSL method 'execEcho' found among steps [...] or symbols [..., execEcho, ...]{code} Even though execEcho shows up as one of the symbols   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To 

[JIRA] (JENKINS-39592) Unable to use global function defined within library project

2016-11-08 Thread ricardojoaor...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ricardo Reis created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39592  
 
 
  Unable to use global function defined within library project   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 workflow-cps-global-lib-plugin  
 
 
Created: 
 2016/Nov/08 4:31 PM  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 Ricardo Reis  
 

  
 
 
 
 

 
 Defining a shared library with this structure: 

 

 +- src
 |   +- org
 |   +- foo
 |   +- Bar.groovy  # for org.foo.Bar class
 +- vars
 |   +- execEcho.groovy
 

 Where Bar.groovy is: 

 

class Bar {
def steps

Bar(steps) { this.steps = steps)

def doEcho(message) { steps.execEcho message }
}
 

 and execEcho.groovy is 

 

def call(message) {
  echo message
}
 

 Using this code within a pipeline 

 

...
def bar = new Bar(steps)
bar.doEcho("Hello World!")
...
 

 Fails with: