Skip to content
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

fix verifying valid script name #737

Closed

Conversation

christophgysin
Copy link
Contributor

Since 1.42, when processing DSLs with the standalone jar, I got warnings:

$ java -jar job-dsl-core-1.42-standalone-jar path/to/my/script.groovy
[...]
Warning: (path/to/my/script.groovy) script names may only contain letters, digits and underscores, but may not start with a digit; support for arbitrary names is deprecated
[...]

This fixes this, by checking only the filename, not the full path.

When being passed a full or relative path, only compare the filename for valid
characters, not the full path.
@jenkinsadmin
Copy link
Member

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

@daspilker
Copy link
Member

Thanks for the fix. I replaced this PR by #740.

@daspilker daspilker closed this Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants