fabric8io/fabric8-pipeline-library

Delete obsessive code duplication

jaseemabid opened this issue · 0 comments

There is roughly 3400 lines of code in about 84 groovy files. I ran some very simple analysis and this is the gist of the analysis.

Found 1874 duplicate lines in 184 blocks in 62 files
Processed a total of 3438 significant (4935 raw) lines in 84 files

About 54% of the code is duplicate of something else, and even when the lines are same, its usually just the names and config parameters. This library needs a major refactor 🤷‍♂️

Attaching the full logs below.

Similarity Analyser 2.5.10 - http://www.harukizaemon.com/simian
Copyright (c) 2003-2018 Simon Harris.  All rights reserved.
Simian is not free unless used solely for non-commercial or evaluation purposes.
{failOnDuplication=true, ignoreCharacterCase=true, ignoreCurlyBraces=true, ignoreIdentifierCase=true, ignoreModifiers=true, ignoreStringCase=true, threshold=6}
Found 6 duplicate lines with fingerprint ab790b62dccae30ca9e3ff62a6733b39 in the following files:
 Between lines 34 and 39 in /home/j/Projects/fabric8-pipeline-library/vars/releaseTemplate.groovy
 Between lines 25 and 30 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
Found 6 duplicate lines with fingerprint dcd1b9c0e4eeba52eac35c37bbd8ece0 in the following files:
 Between lines 63 and 68 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
 Between lines 42 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
Found 6 duplicate lines with fingerprint 6574c94b51ff8d6f10588f8e4c827985 in the following files:
 Between lines 42 and 48 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteClusterTemplate.groovy
 Between lines 42 and 48 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 6 duplicate lines with fingerprint ddd52086b0f8a42554fbe8121db34b3c in the following files:
 Between lines 56 and 61 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
 Between lines 40 and 45 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
Found 6 duplicate lines with fingerprint b03a389c4188ccfa168a90c01f84b8ff in the following files:
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/waitUntilPullRequestMerged.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/waitUntilJenkinsPluginSynced.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/waitUntilArtifactSyncedWithCentral.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/updatePropertyVersion.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/tagImages.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/stageProject.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/stageExtraImages.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/runSystemTests.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/restGetURL.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/releaseProject.groovy
 Between lines 1 and 12 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 1 and 12 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/pushPackageJSONChangePR.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/pushNewDockerImageTagChangePR.groovy
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/pushDockerfileEnvVarChangePR.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/promoteImages.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/promoteArtifacts.groovy
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/npmUpdateOrganisationDependencies.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/npmRelease.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/mergeAndWaitForPullRequest.groovy
 Between lines 1 and 15 in /home/j/Projects/fabric8-pipeline-library/vars/mavenUpdateOrganisationDependencies.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/mavenIntegrationTest.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCI.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCanaryRelease.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/mavenBuildSnapshot.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/goRelease.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/goMake.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/goCI.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/gitTag.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/getNewVersion.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
 Between lines 1 and 28 in /home/j/Projects/fabric8-pipeline-library/vars/genWebsiteDocs.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8SystemTests.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/dropRelease.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/dropProject.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteOpenShift.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteKubernetes.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/deployProject.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftSnapshot.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/deployKubernetesSnapshot.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/deleteGitHubBranch.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/canaryRelease.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/bumpFabric8Versions.groovy
 Between lines 1 and 7 in /home/j/Projects/fabric8-pipeline-library/vars/buildSnapshotFabric8UI.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/approve.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/apply.groovy
Found 6 duplicate lines with fingerprint 7d8165b6a238d521d30cf1795c1d7a8b in the following files:
 Between lines 70 and 77 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 54 and 61 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
Found 6 duplicate lines with fingerprint 89cbf8051b8f00de2de9a9ecf88cb00e in the following files:
 Between lines 22 and 27 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 28 and 33 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 35 and 40 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
 Between lines 19 and 24 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteClusterTemplate.groovy
 Between lines 19 and 24 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 20 and 25 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
Found 6 duplicate lines with fingerprint 1254ff4d2cf5ffc8a33cb37565d73dc1 in the following files:
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
Found 6 duplicate lines with fingerprint 6c93c698724216e73d33d819b364666c in the following files:
 Between lines 13 and 20 in /home/j/Projects/fabric8-pipeline-library/vars/dockerTemplate.groovy
 Between lines 13 and 20 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
Found 6 duplicate lines with fingerprint 056a6446a846ec85ecfeedde3e09bbc5 in the following files:
 Between lines 68 and 74 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
 Between lines 36 and 41 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
 Between lines 30 and 35 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
Found 6 duplicate lines with fingerprint 4b64fefd5584903b546980a02a6bc127 in the following files:
 Between lines 44 and 51 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
 Between lines 81 and 87 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 6 duplicate lines with fingerprint 2a924604a72b989e77c0be4c266f030a in the following files:
 Between lines 29 and 34 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
 Between lines 21 and 26 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
Found 6 duplicate lines with fingerprint 22d8c1c5b487ffd091ad6a6d1384dfa8 in the following files:
 Between lines 10 and 18 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
 Between lines 11 and 19 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
Found 6 duplicate lines with fingerprint 4183c61960b06ebd075e6aa22be21ea9 in the following files:
 Between lines 51 and 56 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
 Between lines 27 and 32 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
Found 6 duplicate lines with fingerprint 81eee683f31d90615f075b6934c2c6f7 in the following files:
 Between lines 17 and 23 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 14 and 20 in /home/j/Projects/fabric8-pipeline-library/vars/pushNewDockerImageTagChangePR.groovy
Found 6 duplicate lines with fingerprint 7d28a3b9c8039e659d89a01bbcf6f8eb in the following files:
 Between lines 17 and 24 in /home/j/Projects/fabric8-pipeline-library/vars/goRelease.groovy
 Between lines 15 and 22 in /home/j/Projects/fabric8-pipeline-library/vars/goMake.groovy
 Between lines 21 and 28 in /home/j/Projects/fabric8-pipeline-library/vars/goCI.groovy
Found 6 duplicate lines with fingerprint a9f4dc4981f7cb60193af9149e638016 in the following files:
 Between lines 23 and 29 in /home/j/Projects/fabric8-pipeline-library/vars/pushPackageJSONChangePR.groovy
 Between lines 25 and 31 in /home/j/Projects/fabric8-pipeline-library/vars/pushDockerfileEnvVarChangePR.groovy
Found 6 duplicate lines with fingerprint fb99560f2792af8eb57e65fc0633f4db in the following files:
 Between lines 53 and 59 in /home/j/Projects/fabric8-pipeline-library/vars/goTemplate.groovy
 Between lines 35 and 40 in /home/j/Projects/fabric8-pipeline-library/vars/goTemplate.groovy
Found 6 duplicate lines with fingerprint fc4ee3a1da8bc9072c8727ed428dcc22 in the following files:
 Between lines 33 and 38 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
 Between lines 30 and 35 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
Found 6 duplicate lines with fingerprint 290918c770f708a844d733b866cb56da in the following files:
 Between lines 60 and 67 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 45 and 52 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 40 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
 Between lines 40 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/pushPackageJSONChangePR.groovy
 Between lines 48 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/pushNewDockerImageTagChangePR.groovy
 Between lines 43 and 50 in /home/j/Projects/fabric8-pipeline-library/vars/pushDockerfileEnvVarChangePR.groovy
 Between lines 80 and 87 in /home/j/Projects/fabric8-pipeline-library/vars/npmUpdateOrganisationDependencies.groovy
 Between lines 80 and 87 in /home/j/Projects/fabric8-pipeline-library/vars/mavenUpdateOrganisationDependencies.groovy
Found 6 duplicate lines with fingerprint 0be1bd53a4fd824c88e2777169654502 in the following files:
 Between lines 123 and 128 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
 Between lines 74 and 79 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
 Between lines 131 and 136 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
 Between lines 68 and 73 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
 Between lines 44 and 49 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
Found 6 duplicate lines with fingerprint a8fffddfd3c40dc178530d3e34cbc7bd in the following files:
 Between lines 51 and 56 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 50 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
Found 6 duplicate lines with fingerprint ccbe5b36a4c5230007100f30ffb8bb24 in the following files:
 Between lines 11 and 18 in /home/j/Projects/fabric8-pipeline-library/vars/releaseTemplate.groovy
 Between lines 9 and 17 in /home/j/Projects/fabric8-pipeline-library/vars/dockerTemplate.groovy
Found 7 duplicate lines with fingerprint a7503eeefbf852d143f16e3237d9c269 in the following files:
 Between lines 45 and 51 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
 Between lines 46 and 52 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 18 and 24 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
Found 7 duplicate lines with fingerprint 8173ca204605d9ae1e302e7ade85ca5f in the following files:
 Between lines 34 and 40 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 56 and 62 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
Found 7 duplicate lines with fingerprint 58a0597537dadab502c8405dbd89063e in the following files:
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/canaryRelease.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteOpenShift.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/dropProject.groovy
 Between lines 1 and 8 in /home/j/Projects/fabric8-pipeline-library/vars/dropRelease.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCanaryRelease.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCI.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/mergeAndWaitForPullRequest.groovy
 Between lines 1 and 15 in /home/j/Projects/fabric8-pipeline-library/vars/pushDockerfileEnvVarChangePR.groovy
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/pushNewDockerImageTagChangePR.groovy
 Between lines 1 and 15 in /home/j/Projects/fabric8-pipeline-library/vars/pushPackageJSONChangePR.groovy
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
 Between lines 1 and 14 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 1 and 14 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/stageProject.groovy
 Between lines 1 and 9 in /home/j/Projects/fabric8-pipeline-library/vars/updatePropertyVersion.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/waitUntilArtifactSyncedWithCentral.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/waitUntilJenkinsPluginSynced.groovy
 Between lines 1 and 12 in /home/j/Projects/fabric8-pipeline-library/vars/waitUntilPullRequestMerged.groovy
Found 7 duplicate lines with fingerprint f923dc6cc1ace2e738371a161f5bd11f in the following files:
 Between lines 79 and 85 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 164 and 170 in /home/j/Projects/fabric8-pipeline-library/vars/mavenUpdateOrganisationDependencies.groovy
 Between lines 92 and 98 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
Found 7 duplicate lines with fingerprint acdca63d7b1e6554c2dcb733ffbbbdf2 in the following files:
 Between lines 61 and 67 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
 Between lines 82 and 88 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
Found 7 duplicate lines with fingerprint 1f4662b23f1b58c33e6dd44546db8b60 in the following files:
 Between lines 65 and 73 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
 Between lines 72 and 80 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 81 and 89 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
Found 7 duplicate lines with fingerprint 087fd4f02a3952e2bba293376bd51086 in the following files:
 Between lines 34 and 40 in /home/j/Projects/fabric8-pipeline-library/vars/s2iTemplate.groovy
 Between lines 48 and 54 in /home/j/Projects/fabric8-pipeline-library/vars/s2iTemplate.groovy
Found 7 duplicate lines with fingerprint b0708c694d6e08013d2e561d47d2fe99 in the following files:
 Between lines 153 and 162 in /home/j/Projects/fabric8-pipeline-library/vars/mavenUpdateOrganisationDependencies.groovy
 Between lines 143 and 152 in /home/j/Projects/fabric8-pipeline-library/vars/npmUpdateOrganisationDependencies.groovy
Found 7 duplicate lines with fingerprint 884436dd59b8b6a973b16aa49da3e3cc in the following files:
 Between lines 27 and 35 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 55 and 63 in /home/j/Projects/fabric8-pipeline-library/vars/mavenUpdateOrganisationDependencies.groovy
 Between lines 23 and 31 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
 Between lines 40 and 48 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
Found 7 duplicate lines with fingerprint 52cdb51e39397e226452eb5dbaf112bb in the following files:
 Between lines 20 and 26 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 20 and 26 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteClusterTemplate.groovy
 Between lines 36 and 42 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
 Between lines 29 and 35 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 21 and 27 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
Found 8 duplicate lines with fingerprint d9184bb1a29e14686aad7d2040875050 in the following files:
 Between lines 77 and 87 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 39 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 78 and 86 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
 Between lines 38 and 46 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
Found 8 duplicate lines with fingerprint 18c480d9cc9ea72c8ede39964e80c20f in the following files:
 Between lines 95 and 102 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 104 and 111 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
Found 8 duplicate lines with fingerprint 5096dac217f0433943ff01fca2dc0b85 in the following files:
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftSnapshot.groovy
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/deployKubernetesSnapshot.groovy
Found 8 duplicate lines with fingerprint d66a51feec7c187f05bf78042570f99e in the following files:
 Between lines 36 and 43 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
 Between lines 30 and 37 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
Found 8 duplicate lines with fingerprint 6da0b68c6e1e78c94fe8d977f00fb77e in the following files:
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCI.groovy
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCanaryRelease.groovy
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/canaryRelease.groovy
Found 8 duplicate lines with fingerprint 7705ef77263deddff7838aa8b39ff2a2 in the following files:
 Between lines 1 and 15 in /home/j/Projects/fabric8-pipeline-library/vars/npmUpdateOrganisationDependencies.groovy
 Between lines 1 and 18 in /home/j/Projects/fabric8-pipeline-library/vars/mavenUpdateOrganisationDependencies.groovy
Found 8 duplicate lines with fingerprint 1133308e45c37b26db27458dcd2f1472 in the following files:
 Between lines 56 and 67 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 41 and 52 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 36 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
Found 8 duplicate lines with fingerprint fa5b9a07454f045e920ffe88d21e2c91 in the following files:
 Between lines 75 and 82 in /home/j/Projects/fabric8-pipeline-library/vars/releaseTemplate.groovy
 Between lines 48 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/releaseTemplate.groovy
Found 8 duplicate lines with fingerprint 7389be32232bf0afd1e9ff6b98637fe1 in the following files:
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/releaseProject.groovy
 Between lines 1 and 10 in /home/j/Projects/fabric8-pipeline-library/vars/deployProject.groovy
Found 8 duplicate lines with fingerprint a4b0cabe1c257ae8ea97231c76443a29 in the following files:
 Between lines 26 and 33 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 28 and 35 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
 Between lines 20 and 27 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
 Between lines 48 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 8 duplicate lines with fingerprint ea3270b8ed22001e31c1105e3743e6b4 in the following files:
 Between lines 13 and 23 in /home/j/Projects/fabric8-pipeline-library/vars/s2iTemplate.groovy
 Between lines 10 and 20 in /home/j/Projects/fabric8-pipeline-library/vars/nodejsTemplate.groovy
 Between lines 12 and 21 in /home/j/Projects/fabric8-pipeline-library/vars/releaseTemplate.groovy
Found 8 duplicate lines with fingerprint f87e69da00c7fdaa11b1c649a97c9c91 in the following files:
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 1 and 11 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
Found 8 duplicate lines with fingerprint 78890eaf3591c6f09b2e1ba867131831 in the following files:
 Between lines 1 and 16 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 1 and 16 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 1 and 14 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
Found 8 duplicate lines with fingerprint b3630222e6a89ce5eeb19d03404ae8a9 in the following files:
 Between lines 24 and 33 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
 Between lines 24 and 33 in /home/j/Projects/fabric8-pipeline-library/vars/pushPackageJSONChangePR.groovy
Found 8 duplicate lines with fingerprint 3ce4c142bf49f191b78e366ca3cc97f1 in the following files:
 Between lines 40 and 49 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 23 and 32 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
 Between lines 27 and 36 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
Found 9 duplicate lines with fingerprint a74e24a264a94a5f2e73f2d95e854ec5 in the following files:
 Between lines 37 and 48 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
 Between lines 48 and 59 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
Found 9 duplicate lines with fingerprint 0312ffa9efa348f0083b41018c9ef929 in the following files:
 Between lines 1 and 15 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
 Between lines 1 and 17 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
Found 9 duplicate lines with fingerprint 86ea1f747bdfe9a20b183a3788adb4c4 in the following files:
 Between lines 64 and 73 in /home/j/Projects/fabric8-pipeline-library/vars/pushNewDockerImageTagChangePR.groovy
 Between lines 61 and 70 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
Found 9 duplicate lines with fingerprint 2003594ad5bfdcdbe494a70a7dc9bf3b in the following files:
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/canaryRelease.groovy
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCanaryRelease.groovy
Found 9 duplicate lines with fingerprint db8b5401d174753e27f54aee6fd49ed1 in the following files:
 Between lines 38 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/clientsTemplate.groovy
 Between lines 39 and 48 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
Found 9 duplicate lines with fingerprint 0718cd4a1bb7b3da396179422280af14 in the following files:
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/goCI.groovy
 Between lines 1 and 12 in /home/j/Projects/fabric8-pipeline-library/vars/goMake.groovy
 Between lines 1 and 12 in /home/j/Projects/fabric8-pipeline-library/vars/goRelease.groovy
Found 9 duplicate lines with fingerprint a5096da0fcfcf60e689e0703ce301ec8 in the following files:
 Between lines 18 and 26 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 18 and 26 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteClusterTemplate.groovy
Found 9 duplicate lines with fingerprint e4e0f5cd8d72d1295e9ef15ac171695b in the following files:
 Between lines 39 and 50 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
 Between lines 85 and 96 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
Found 9 duplicate lines with fingerprint 15b1e9568df7409336e6b79a32141024 in the following files:
 Between lines 15 and 29 in /home/j/Projects/fabric8-pipeline-library/vars/goMake.groovy
 Between lines 17 and 31 in /home/j/Projects/fabric8-pipeline-library/vars/goRelease.groovy
Found 10 duplicate lines with fingerprint dc2a969d414caf2c04908c2abb61c76d in the following files:
 Between lines 87 and 96 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 73 and 82 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 10 duplicate lines with fingerprint ca1f9a6b13e5d9c9c509128878504393 in the following files:
 Between lines 71 and 90 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 50 and 66 in /home/j/Projects/fabric8-pipeline-library/vars/pushParentPomVersionChangePR.groovy
Found 10 duplicate lines with fingerprint 4e3582c58caa8820192605054bb66104 in the following files:
 Between lines 40 and 53 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 27 and 40 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
Found 10 duplicate lines with fingerprint 34f19856c477be5c780d8b6d39f2b112 in the following files:
 Between lines 19 and 28 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 25 and 34 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 32 and 41 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
Found 10 duplicate lines with fingerprint ccbd877eb438b6705100435687243b44 in the following files:
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/goRelease.groovy
 Between lines 1 and 14 in /home/j/Projects/fabric8-pipeline-library/vars/goCI.groovy
Found 10 duplicate lines with fingerprint 547e28cd54d99a6792d4dabf7a9aca12 in the following files:
 Between lines 18 and 27 in /home/j/Projects/fabric8-pipeline-library/vars/deployTemplate.groovy
 Between lines 46 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 10 duplicate lines with fingerprint 20029f57d60c20c54c01e75f081f73e4 in the following files:
 Between lines 1 and 13 in /home/j/Projects/fabric8-pipeline-library/vars/tagImages.groovy
 Between lines 1 and 12 in /home/j/Projects/fabric8-pipeline-library/vars/stageExtraImages.groovy
Found 10 duplicate lines with fingerprint 613dd288834c96d6c36b2a6a3eef4f94 in the following files:
 Between lines 87 and 97 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 81 and 91 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
Found 10 duplicate lines with fingerprint e38cb1384658fcc81e4a4b6e4aa02f0e in the following files:
 Between lines 44 and 54 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 52 and 62 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
 Between lines 83 and 93 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 92 and 102 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
Found 10 duplicate lines with fingerprint 7b949d001ab500748282e8789204a5a1 in the following files:
 Between lines 67 and 78 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 73 and 84 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
Found 10 duplicate lines with fingerprint ff08e581fa674827d961b16306d0daaf in the following files:
 Between lines 37 and 47 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 76 and 86 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 11 duplicate lines with fingerprint c9aba44616b89b853ac4eec5a43b71bb in the following files:
 Between lines 101 and 113 in /home/j/Projects/fabric8-pipeline-library/vars/chunkyTemplate.groovy
 Between lines 134 and 146 in /home/j/Projects/fabric8-pipeline-library/vars/mavenTemplate.groovy
Found 12 duplicate lines with fingerprint 5d1256acce2b9c8cc16327ebe5c8dd17 in the following files:
 Between lines 56 and 69 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftSnapshot.groovy
 Between lines 25 and 38 in /home/j/Projects/fabric8-pipeline-library/vars/buildSnapshotFabric8UI.groovy
Found 13 duplicate lines with fingerprint 13d62dbf2c12f1b252af50cef4d11aca in the following files:
 Between lines 153 and 165 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
 Between lines 105 and 117 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
Found 14 duplicate lines with fingerprint 1c6317235ad8158a1184e72e43618d2a in the following files:
 Between lines 20 and 35 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
 Between lines 27 and 42 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
Found 14 duplicate lines with fingerprint ecee4d03873272fbac96cb5413710f59 in the following files:
 Between lines 41 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITestTemplate.groovy
 Between lines 48 and 62 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
Found 17 duplicate lines with fingerprint 48a4a64109e60018e2bb9160a8f50137 in the following files:
 Between lines 46 and 63 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
 Between lines 38 and 55 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
Found 18 duplicate lines with fingerprint e206bd2db66b2ba14e4a77769bbe629d in the following files:
 Between lines 22 and 51 in /home/j/Projects/fabric8-pipeline-library/vars/mavenCanaryRelease.groovy
 Between lines 24 and 53 in /home/j/Projects/fabric8-pipeline-library/vars/canaryRelease.groovy
Found 18 duplicate lines with fingerprint d8d39612f1c8dc786e6512680faada07 in the following files:
 Between lines 48 and 65 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteClusterTemplate.groovy
 Between lines 26 and 43 in /home/j/Projects/fabric8-pipeline-library/vars/deployRemoteClusterTemplate.groovy
Found 19 duplicate lines with fingerprint 467b11db94b1547c204d87092e896ae0 in the following files:
 Between lines 48 and 68 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
 Between lines 26 and 45 in /home/j/Projects/fabric8-pipeline-library/vars/deployOpenShiftTemplate.groovy
Found 20 duplicate lines with fingerprint 376c704429817040e9dc03dcc29d0c22 in the following files:
 Between lines 78 and 107 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePROrganisation.groovy
 Between lines 67 and 94 in /home/j/Projects/fabric8-pipeline-library/vars/pushPomPropertyChangePR.groovy
Found 22 duplicate lines with fingerprint aacb7f06d58af099b03cc17be15c0c5a in the following files:
 Between lines 67 and 90 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8EETestTemplate.groovy
 Between lines 58 and 81 in /home/j/Projects/fabric8-pipeline-library/vars/fabric8UITemplate.groovy
Found 27 duplicate lines with fingerprint c6c442b7ebd6fbb7f996e4424b60ad56 in the following files:
 Between lines 161 and 187 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
 Between lines 99 and 125 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
Found 30 duplicate lines with fingerprint 3494fca6f452ba8027a27b2652547d26 in the following files:
 Between lines 18 and 54 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
 Between lines 12 and 48 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
Found 31 duplicate lines with fingerprint fca7c561beb90e5a7d7da459317ee1a5 in the following files:
 Between lines 187 and 221 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
 Between lines 165 and 199 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
Found 47 duplicate lines with fingerprint 878f5962f53c8e2b6d414b569429d895 in the following files:
 Between lines 125 and 172 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
 Between lines 117 and 164 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
Found 60 duplicate lines with fingerprint 628f3755860379dcce63171ee135aba0 in the following files:
 Between lines 56 and 116 in /home/j/Projects/fabric8-pipeline-library/vars/getKubernetesJson.groovy
 Between lines 50 and 110 in /home/j/Projects/fabric8-pipeline-library/vars/getDeploymentResources.groovy
Found 1874 duplicate lines in 184 blocks in 62 files
Processed a total of 3438 significant (4935 raw) lines in 84 files
Processing time: 0.200sec