[JIRA] (JENKINS-58572) sh with returnStdout does not work in external library
Title: Message Title JO JO commented on JENKINS-58572 Re: sh with returnStdout does not work in external library May be linked to https://issues.jenkins-ci.org/browse/JENKINS-56384?page=com.atlassian.streams.streams-jira-plugin%3Aactivity-stream-issue-tab Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200723.1563542922000.16530.1563544200195%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58572) sh with returnStdout does not work in external library
Title: Message Title JO JO updated an issue Jenkins / JENKINS-58572 sh with returnStdout does not work in external library Change By: JO JO Hello,I need to get sh return from an external library inside my pipeline.The code I execute in my shared library is the following : {code:java}def pomLocations = steps.sh(script: "find . -name pom.xml", returnStdout: true){code}+*Problem*+**After that I do {code:java}steps.sh 'echo "${TMPPackageLocation}"'{code}But result is empty*Note:* `steps.sh(script: "find . -name pom.xml" , returnStdout: true )` does work and result is not emptyThanks a lot in advance,JF Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200723.1563542922000.16528.1563544140133%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58572) sh with returnStdout does not work in external library
Title: Message Title JO JO updated an issue Jenkins / JENKINS-58572 sh with returnStdout does not work in external library Change By: JO JO Hello,I need to get sh return from an external library inside my pipeline. The code I execute in my shared library is the following : {code:java} ``` def pomLocations = steps.sh(script: "find . -name pom.xml", returnStdout: true) ``` {code} +*Problem*+**After that I do {code:java} ``` steps.sh 'echo "${TMPPackageLocation}"' ``` {code} But result is empty*Note:* `steps.sh(script: "find . -name pom.xml", returnStdout: true)` does work and result is not emptyThanks a lot in advance,JF Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200723.1563542922000.16504.1563543000771%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58572) sh with returnStdout does not work in external library
Title: Message Title JO JO created an issue Jenkins / JENKINS-58572 sh with returnStdout does not work in external library Issue Type: Bug Assignee: Gregory Boissinot Components: shared-objects-plugin Created: 2019-07-19 13:28 Priority: Minor Reporter: JO JO Hello, I need to get sh return from an external library inside my pipeline. The code I execute in my shared library is the following : ```def pomLocations = steps.sh(script: "find . -name pom.xml", returnStdout: true)``` Problem **After that I do ```steps.sh 'echo "${TMPPackageLocation}"'``` But result is empty Note: `steps.sh(script: "find . -name pom.xml", returnStdout: true)` does work and result is not empty Thanks a lot in advance, JF Add Comment