Skip to content

Commit

Permalink
Merge pull request #198 from peterlynch/Jenkinsfile-is-source-code
Browse files Browse the repository at this point in the history
Jenkinsfile is source code
  • Loading branch information
mathieucarbou authored Apr 17, 2021
2 parents 00d3684 + 79283d6 commit 78bb65b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ public final class Default {
"**/*.ods",
"**/*.pdf",

// Jenkins
"**/Jenkinsfile",

// Travis
"**/.travis.yml",

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.mycila.maven.plugin.license;

import java.util.Arrays;

import org.hamcrest.CoreMatchers;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;

public class DefaultTest
{
@Test
public void test_Jenkinsfile_is_not_a_default_exclude() {
assertThat(Arrays.asList(Default.EXCLUDES), not(CoreMatchers.<String>hasItems(containsString("Jenkinsfile"))));
}
}

0 comments on commit 78bb65b

Please sign in to comment.