[JIRA] (JENKINS-38855) fileExists to support file globbing
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-38855 fileExists to support file globbing Change By: Andrew Bayer Component/s: pipeline-utility-steps-plugin Component/s: workflow-basic-steps-plugin Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-38855) fileExists to support file globbing
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-38855 fileExists to support file globbing Change By: Andrew Bayer Component/s: workflow-basic-steps-plugin Component/s: pipeline-utility-steps-plugin Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-38855) fileExists to support file globbing
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-38855 fileExists to support file globbing Will not implement in fileExists. Could be in the Utility Steps plugin. Generally if you find yourself needing things like this, consider moving all the logic into an external script. Change By: Jesse Glick Component/s: pipeline-utility-steps-plugin Component/s: pipeline-build-step-plugin 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
[JIRA] (JENKINS-38855) fileExists to support file globbing
Title: Message Title Edward Easton updated an issue Jenkins / JENKINS-38855 fileExists to support file globbing Change By: Edward Easton Hi - it would be really nice if the fileExists() step supported file globbing:{code}if (fileExists('foo/bar*')) {// ... }{code}Currently the only way I can find to do this is an awkward use of the compgen command inside a try/catch, and this will only work on Unix:{code}try {sh "compgen -G 'foo/bar*'"// ... }catch (err) {pass}{code} 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-38855) fileExists to support file globbing
Title: Message Title Edward Easton updated an issue Jenkins / JENKINS-38855 fileExists to support file globbing Change By: Edward Easton Hi - it would be really nice if the fileExists() step supported file globbing:{code}if (fileExists('foo/bar*')) {// ... }{code}Currently the only way I can find to do this is an awkward use of the compgen command inside a try/catch, and this will only work on Unix:{code}try {sh "compgen 'foo/bar* ' "// ... }catch (err) {pass}{code} 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-38855) fileExists to support file globbing
Title: Message Title Edward Easton created an issue Jenkins / JENKINS-38855 fileExists to support file globbing Issue Type: Improvement Assignee: Unassigned Components: pipeline-build-step-plugin Created: 2016/Oct/10 10:01 AM Priority: Minor Reporter: Edward Easton Hi - it would be really nice if the fileExists() step supported file globbing: if (fileExists('foo/bar*')) { // ... } Currently the only way I can find to do this is an awkward use of the compgen command inside a try/catch, and this will only work on Unix: try { sh "compgen 'foo/bar*" // ... } catch (err) { pass } Add Comment