[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Piotr Kożuchowski commented on JENKINS-46988 Re: String.eachLine only reads first line I've just stumbled over this as well. Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- 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.185366.1505906799000.6233.1584017400487%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Dominique Thornton commented on JENKINS-46988 Re: String.eachLine only reads first line Likewise. Just burned a bit of time on this. Moving to the workaround. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.8283.1581541380510%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Andrew Lawrence commented on JENKINS-46988 Re: String.eachLine only reads first line I'd like to affirm the previous comment. I just did exactly that – I spent a couple of hours trying to figure out why my code wasn't working, and ended up here when I realized it was a bug in the Jenkins groovy interpreter for scripted pipelines. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.1473.1579297740455%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Jo Rhett edited a comment on JENKINS-46988 Re: String.eachLine only reads first line I don't feel that this issue is Minor, nor do I feel that the workaround is an acceptable solution. This basically means that every Jenkins user worldwide will burn some hours diagnosing this problem only to end up here. That this bug is more than 2 years old speaks to a significant lack of care. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.9909.1571332140516%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Jo Rhett edited a comment on JENKINS-46988 Re: String.eachLine only reads first line I don'tfeel that this issue is Minor, nor do I feel that the workaround is an acceptable solution. This basically means that every Jenkins user worldwide will burn some hours diagnosing this problem only to end up here. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.9892.1571331901488%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Jo Rhett commented on JENKINS-46988 Re: String.eachLine only reads first line I don't Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.9849.1571331120466%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Rakesh Nagarajan commented on JENKINS-46988 Re: String.eachLine only reads first line Workaround is working really fine As a workaround replace eachLine with split('\n').each { ... } Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.758.1568867220362%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Rakesh Nagarajan commented on JENKINS-46988 Re: String.eachLine only reads first line node { def data = """# some useless text |# even more |finally interesting text""" data.eachLine { String line -> println line } } Same issue when we execute the above script. expected to call java.lang.String.eachLine but wound up catching org.jenkinsci.plugins.workflow.cps.CpsClosure2.call; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/ Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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.185366.1505906799000.744.1568866500430%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Stefan Thurnherr commented on JENKINS-46988 Re: String.eachLine only reads first line Just ran into this issue as well, but got this nice warning in the Jenkins output which helped me find the cause (i.e. this issue): expected to call java.lang.String.eachLine but wound up catching org.jenkinsci.plugins.workflow.cps.CpsClosure2.call; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/ 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.185366.1505906799000.2508.1565769900430%40Atlassian.JIRA.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Katie Sissons commented on JENKINS-46988 Re: String.eachLine only reads first line Chiming in as well, having the same issue. Example: def tagged_branches = sh(returnStdout: true, script: "git branch --contains tags/${tag_name}") println tagged_branches tagged_branches.eachLine { println it } Outputs: 12:36:41 + git branch --contains tags/v0.6.20 12:36:41 [Pipeline] echo 12:36:41feature/install_from_net_drive 12:36:41 * master 12:36:41 12:36:42 [Pipeline] echo 12:36:42feature/install_from_net_drive 12:36:42 [Pipeline] } 12:36:42 [Pipeline] // script 12:36:42 [Pipeline] } 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.185366.1505906799000.9484.1558554180342%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46988) String.eachLine only reads first line
Title: Message Title Kevin Nuckolls commented on JENKINS-46988 Re: String.eachLine only reads first line I lost an afternoon to this bug and it's real and still open. The workaround mentioned of the split each works great. Just chiming in that this does actually need to be fixed. 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.185366.1505906799000.564.1557626280221%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.