Replies: 2 comments
-
|
You cannot force GitHub.com to treat Jenkinsfile-abc as a Jenkinsfile/Groovy file using .gitattributes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Add a .gitattributes file to the repo with: Jenkinsfile-* linguist-language=Groovy Commit and push, then reload the file on GitHub. This forces Groovy/Jenkins syntax highlighting for non-standard Jenkinsfile names. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a file called Jenkinsfile-abc and I want GitHub.com to show it as a Groovy/Jenkinsfile, instead of a plain text file.
In Visual Studio I can use
files.associationsto achieve syntax highlighting. For GitHub.com I read something about modifying .gitattributtes but it didn't work for me.Beta Was this translation helpful? Give feedback.
All reactions