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

Jenkinsfile is source code #198

Merged

Conversation

peterlynch
Copy link
Contributor

Jenkinsfile is intended to be checked into SCM. As such it should contain a license just like any other source file.

https://www.jenkins.io/doc/book/pipeline/jenkinsfile/

Jenkinsfile is intended to be checked into SCM. As such it should contain a license just like any other source file.

https://www.jenkins.io/doc/book/pipeline/jenkinsfile/
@mathieucarbou mathieucarbou merged commit 78bb65b into mathieucarbou:master Apr 17, 2021
@peterlynch peterlynch deleted the Jenkinsfile-is-source-code branch April 18, 2021 04:16
@mathieucarbou mathieucarbou added this to the 4.1 milestone Apr 18, 2021
@hazendaz
Copy link
Collaborator

hazendaz commented May 3, 2021

@mathieucarbou Few questions here. Testing in at least windows, Jenkinsfile will just throw a warning because it has no file extension. What style would it have? I presume those must be both figured out with standard code and not seeing how here.

@peterlynch
Copy link
Contributor Author

peterlynch commented May 3, 2021 via email

@mathieucarbou
Copy link
Owner

@peterlynch could you please send a PR asap to rollback the support for Jenkins files ? I will be able to release a fix and it will give time for proper support and testing. I think the issue comes from the fact that license style detection is done based on the extension and this file has no extension.
I think that the code returning the extension of a file perhaps could return the file name if no extension is set so that we can correctly determine header styles based on either extension or fixed file names.

Thanks for the report @hazendaz 👍

@peterlynch
Copy link
Contributor Author

peterlynch commented May 3, 2021 via email

@mathieucarbou
Copy link
Owner

mathieucarbou commented May 3, 2021

@hazendaz : meanwhile, you could easily fix that by adding the Jenkins files in your list of excluded files I think. This will revert to the old behaviour at least (not perfect but will ignore those files).

Here is the commit FYI: 33c7cd5

@hazendaz
Copy link
Collaborator

hazendaz commented May 5, 2021

@mathieucarbou Yes, thanks. I did exactly that. Not a huge deal for now. Will be nice to see ability to license such files as we have a number of them that don't fit nicely currently. Appreciate it!

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