Skip to content

Commit

Permalink
Merge pull request #202 from jhancock93/feature-jenkins-type
Browse files Browse the repository at this point in the history
Add .jenkins extension type
  • Loading branch information
asottile authored May 25, 2021
2 parents addcf67 + 1916ff9 commit 3773ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions identify/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
'jade': {'text', 'jade'},
'jar': {'binary', 'zip', 'jar'},
'java': {'text', 'java'},
'jenkinsfile': {'text', 'groovy'},
'jenkins': {'text', 'groovy', 'jenkins'},
'jenkinsfile': {'text', 'groovy', 'jenkins'},
'jinja': {'text', 'jinja'},
'jinja2': {'text', 'jinja'},
'jpeg': {'binary', 'image', 'jpeg'},
Expand Down Expand Up @@ -271,7 +272,7 @@
'Gemfile': EXTENSIONS['rb'],
'Gemfile.lock': {'text'},
'GNUmakefile': EXTENSIONS['mk'],
'Jenkinsfile': {'text', 'groovy'},
'Jenkinsfile': EXTENSIONS['jenkins'],
'LICENSE': EXTENSIONS['txt'],
'MAINTAINERS': EXTENSIONS['txt'],
'Makefile': EXTENSIONS['mk'],
Expand Down
3 changes: 3 additions & 0 deletions tests/identify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def test_tags_from_path_plist_text(tmpdir):
('mod/Dockerfile', {'text', 'dockerfile'}),
('Gemfile', {'text', 'ruby'}),
('Gemfile.lock', {'text'}),
('Jenkinsfile', {'text', 'groovy', 'jenkins'}),
('build.jenkins', {'text', 'groovy', 'jenkins'}),
('build.jenkinsfile', {'text', 'groovy', 'jenkins'}),
# does not set binary / text
('f.plist', {'plist'}),
Expand Down

0 comments on commit 3773ea6

Please sign in to comment.