Repository navigation
Add new build parameter: "defaultExclusion" - #1707
Conversation
de4b0a9 to
11f2912
Compare
Codecov Report
@@ Coverage Diff @@
## master #1707 +/- ##
============================================
+ Coverage 65.09% 65.11% +0.01%
- Complexity 2251 2253 +2
============================================
Files 172 172
Lines 10102 10109 +7
Branches 1390 1390
============================================
+ Hits 6576 6582 +6
Misses 2977 2977
- Partials 549 550 +1
|
| // using dir dir mode | ||
| excludeDockerfile(fileSet, dockerFile); | ||
|
|
||
| fileSet.setUsingDefaultExcludes(buildConfig.defaultExclusion()); |
There was a problem hiding this comment.
We might consider to set this always to "false", as IMO this is the sensible behaviour (and usually it also doesn't harm except that it might increase the performance slightly).
|
Thanks for the PR! We might even want to fix it without config changes, please see the discussion on the issue. |
|
|
||
| //Default file exclusions | ||
| @Parameter | ||
| private Boolean defaultExclusion; |
There was a problem hiding this comment.
If we go forward with this PR, I would use useDefaultExcludes as option, much like the property on the fileset, as this better reflects the boolean nature of this flag.
7e17317 to
ef8515c
Compare
This commit introduces a new build parameter, "defaultExclusion," within the build properties of the plugin. The current behavior of the plugin is to build a Docker archive with default exclusion rules, which exclude hidden files. However, the Docker CLI includes hidden files by default. With the addition of the "defaultExclusion" parameter, users can now control whether hidden files should be excluded during the Docker archive build process. This parameter provides flexibility and allows users to align the plugin's behavior with their specific requirements.
ef8515c to
8f5e5f2
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
Thanks a lot, looks good to me. One last little thing to add to the documentation, then we can merge it. |
I already added the new configuration in the build configuration documentation. Do I need to add anything else? |
|
Please add the configuration property to |









This commit introduces a new build parameter, "defaultExclusion," within the build properties of the plugin. The current behavior of the plugin is to build a Docker archive with default exclusion rules, which exclude hidden files. However, the Docker CLI includes hidden files by default.
With the addition of the "defaultExclusion" parameter, users can now control whether hidden files should be excluded during the Docker archive build process. This parameter provides flexibility and allows users to align the plugin's behavior with their specific requirements.
Fixes: #1708