-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI Docker String.repeat
error
#25
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
While running v1.6.0 of this package in Jenkins CI via Docker, I receive the following error which fails my build, even though the deployment succeeded:
The error appears to originate here:
cli/src/index.js
Lines 229 to 234 in a4df848
I've been reading around online and have found that
process.stdout.columns
can often come back as0
/null
/undefined
during CI, which would explain whyString.repeat
is throwing because of a negativecount
argument:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat#using_repeat
If this could please be refactored to handle this scenario that'd be amazing. Maybe something like this where we don't bother with a border if the columns can't be derived:
Many thanks, Ben
The text was updated successfully, but these errors were encountered: