[JIRA] (JENKINS-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title Jesse Glick resolved as Fixed Jenkins / JENKINS-39565 Global function with no parameters silently ignored when called without parenthesis Change By: Jesse Glick Status: Reopened Resolved Resolution: Fixed 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title SCM/JIRA link daemon commented on JENKINS-39565 Re: Global function with no parameters silently ignored when called without parenthesis Code changed in jenkins User: R. Tyler Croy Path: content/doc/book/pipeline/shared-libraries.adoc http://jenkins-ci.org/commit/jenkins.io/afda67637c8a2f4764c458711ae41241e2766a4a Log: Clarify in the Shared Libraries section that "steps" in Shared Libraries are just variables Basically, the end-user can pretend that they're just like other "steps" but in truth we're using some Groovy invocation magic which means parameterless invocation doesn't work in the same manner as a real step. Fixes JENKINS-39565 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title R. Tyler Croy commented on JENKINS-39565 Re: Global function with no parameters silently ignored when called without parenthesis This pull request adds the appropriate clarification and updates to the Shared Library documentation published on jenkins.io in the "Pipeline" chapter. FWIW. 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-39565 Global function with no parameters silently ignored when called without parenthesis Change By: Jesse Glick Priority: Major Minor Labels: documentation 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title Jesse Glick reopened an issue Reopening as a docs issue then. Jenkins / JENKINS-39565 Global function with no parameters silently ignored when called without parenthesis Change By: Jesse Glick Resolution: Not A Defect Status: Closed Reopened 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
[JIRA] (JENKINS-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title G. Richard Bellamy edited a comment on JENKINS-39565 Re: Global function with no parameters silently ignored when called without parenthesis I'm still learning groovy and Jenkins pipeline language, and got the language used here from the [documentation on github|https://github.com/jenkinsci/workflow-cps-global-lib-plugin]:{quote} * Defining global functions * You can define your own functions that looks and feels like built-in step functions like sh or git. For example, to define helloWorld step of your own, create a file named vars/helloWorld.groovy and define the call method: {code} // vars/helloWorld.groovydef call(name) {// you can call any valid step functions from your code, just like you can from Pipeline scriptsecho "Hello world, ${name}"}{ code}{ quote} 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title G. Richard Bellamy edited a comment on JENKINS-39565 Re: Global function with no parameters silently ignored when called without parenthesis I'm still learning groovy and Jenkins pipeline language, and got the language used here from the [documentation on github|https://github.com/jenkinsci/workflow-cps-global-lib-plugin]:{quote}*Defining global functions*You can define your own functions that looks and feels like built-in step functions like sh or git. For example, to define helloWorld step of your own, create a file named vars/helloWorld.groovy and define the call method:{code}// vars/helloWorld.groovydef call(name) {// you can call any valid step functions from your code, just like you can from Pipeline scriptsecho "Hello world, ${name}"}{code}{quote} And yeah, I got some help in IRC that clarified my misunderstanding. The question was asked, "do you know of any other example of a workflow function that gets called without parenthesis or arguments?" and I had to answer, "nope." 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title G. Richard Bellamy commented on JENKINS-39565 Re: Global function with no parameters silently ignored when called without parenthesis I'm still learning groovy and Jenkins pipeline language, and got the language used here from the documentation on github: Defining global functions You can define your own functions that looks and feels like built-in step functions like sh or git. For example, to define helloWorld step of your own, create a file named vars/helloWorld.groovy and define the call method: // vars/helloWorld.groovy def call(name) { // you can call any valid step functions from your code, just like you can from Pipeline scripts echo "Hello world, $ Unknown macro: {name} " } 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title Jesse Glick commented on JENKINS-39565 Re: Global function with no parameters silently ignored when called without parenthesis There is no such thing as a “global function” in a Pipeline library. There are only global variables. If they happen to define a method named call then, after retrieving their value, you may also call them like methods. In the broken example the retrieving script elected not to do so, thus nothing happened. 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-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title G. Richard Bellamy created an issue Jenkins / JENKINS-39565 Global function with no parameters silently ignored when called without parenthesis Issue Type: Bug Assignee: Unassigned Components: workflow-cps-global-lib-plugin Created: 2016/Nov/08 12:59 AM Environment: CentOS 7 Priority: Major Reporter: G. Richard Bellamy Calling code (e.g. Jenkinsfile or script via load): testGlobalFunction Global function: /var/lib/jenkins/workflow-libs/vars/testGlobalFunction.groovy #!/usr/bin/env groovy import com.github.jenkinsci.WorkflowCpsGlobalLibPluginTest /** * @author rbell...@terradatum.com */ def call() { def flow = new WorkflowCpsGlobalLibPluginTest() flow.dockerLogin() } Workflow function: /var/lib/jenkins/workflow-libs/src/com/github/jenkinsci/WorkflowCpsGlobalLibPluginTest.groovy
[JIRA] (JENKINS-39565) Global function with no parameters silently ignored when called without parenthesis
Title: Message Title G. Richard Bellamy closed an issue as Not A Defect Jenkins / JENKINS-39565 Global function with no parameters silently ignored when called without parenthesis Change By: G. Richard Bellamy Status: Open Closed 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 to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.