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

Show duplication in jib code #1454

Merged
merged 2 commits into from
Jan 14, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jan 11, 2019

There's some duplication in jib code with regards to maven/gradle args.
This PR moves similar code fragments next to one another to make them easier to maintain.

Ideally, this duplication can be removed but I don't know enough jib to ensure I'm not breaking something.

@dgageot
Copy link
Contributor Author

dgageot commented Jan 11, 2019

ping @GoogleContainerTools/java-tools

@codecov-io
Copy link

codecov-io commented Jan 11, 2019

Codecov Report

Merging #1454 into master will increase coverage by 0.08%.
The diff coverage is 87.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1454      +/-   ##
==========================================
+ Coverage   44.33%   44.41%   +0.08%     
==========================================
  Files         113      113              
  Lines        4660     4667       +7     
==========================================
+ Hits         2066     2073       +7     
  Misses       2386     2386              
  Partials      208      208
Impacted Files Coverage Δ
pkg/skaffold/build/local/jib_gradle.go 0% <0%> (-21.88%) ⬇️
pkg/skaffold/build/local/jib_maven.go 25.53% <0%> (-13.07%) ⬇️
pkg/skaffold/jib/jib_maven.go 100% <100%> (ø) ⬆️
pkg/skaffold/jib/jib_gradle.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 967c35d...add22d8. Read the comment docs.

@dgageot dgageot force-pushed the jib-show-duplication branch from e3387c5 to 407ca04 Compare January 12, 2019 06:59
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot force-pushed the jib-show-duplication branch from 407ca04 to add22d8 Compare January 14, 2019 18:37
Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@dgageot dgageot merged commit db5e1ad into GoogleContainerTools:master Jan 14, 2019
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