summaryrefslogtreecommitdiffstats
path: root/shell
AgeCommit message (Collapse)AuthorFilesLines
2023-07-17Fix: Remove local deprecated docker templateJessica Wagantall2-48/+0
The local docker build and merge jobs are deprecated and projects should use global-jjb templates instead. Having the old template was creating confusion in jjb 5.0.2 where scripts were getting mixed. Is best to remove the old deprecated template. aai-common is migrated too to use the new template. Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: I7d1cb277964636ea11cfceccf511ad2dc992dca3
2022-12-05[HELM] Clean up and fix oom helm jobsefiacor7-26/+27
Change-Id: I44c198e86f09f06d4ccd6e8b89c111ee49ebee2c Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: OOM-3065
2022-11-10[OOM] Upgrade and clean up OOM jobsefiacor1-1/+1
Change-Id: I8c6a22f39add57a5b30ad711ac296825986feb20 Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: CIMAN-424
2022-10-03Gerrit review tool wrapper updatesVijay Venkatesh Kumar1-4/+11
"-G" added to pulls all required parameters from the environment + support for arguments to be passed for OGR at individual project level Change-Id: I223c70385827426b924187bec75960b31bf31163 Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-3293 Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
2022-08-11[OOM] Upgrade oom versionsefiacor1-1/+1
Change-Id: I79c7bdca4c7b683d74e10afed84395649a233a9f Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: OOM-3018
2022-07-19[DCAE] Enable review tool validationvv770d1-1/+3
Remove -E flag to fail build on any error Added -S to print out the success messages Change-Id: I27b19d9e3e87a85675b4a3b07ea753c2ba8da676 Signed-off-by: vv770d <vv770d@att.com> Issue-ID: DCAEGEN2-3232 Signed-off-by: vv770d <vv770d@att.com>
2022-04-26Merge "[OOM] Clean up old jobs"Jessica Wagantall2-16/+0
2022-04-26Chore: Add debug flag to curl cmd for helm releaseBengt Thuree1-1/+1
Issue-ID: CIMAN-33 IT-23362 Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org> Change-Id: I42d3c46eb837a9e59227e78732c7cd250678eb0c
2022-04-25[OOM] Clean up old jobsefiacor2-16/+0
Remove helm 2 and helm 3.5 Change-Id: I3acd07c23e8cfe8d88b93b13e39589c7e6188f84 Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: OOM-2965
2022-03-04[DCAE] Add automated review for snmptrap verifyvv770d1-0/+36
https://jira.linuxfoundation.org/plugins/servlet/theme/portal/2/IT-23562 Change-Id: I718152d6cd13862b8863af3cdd6d4b5e8f86610d Signed-off-by: vv770d <vv770d@att.com> Issue-ID: DCAEGEN2-2997 Issue-ID: DCAEGEN2-2999 Signed-off-by: vv770d <vv770d@att.com>
2021-10-05[OOM] Use version v0.9.0 for helm push pluginSylvain Desbureaux1-1/+1
Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Iaadf675fc5082939e272af3075050cf02a12a803
2021-08-03Fix: Fix machine nameJessica Wagantall1-1/+1
Fix machine name on oom-create-netrc Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: Ieb561e39629e15fa0e9568599d8c805e9e2042de
2021-08-02fix: Use HELM specific netrc builderJessica Wagantall1-0/+50
We need a local create-netrc builder that allows us to create an entry for the helm repo which is hosted in Nexus3. Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: Ic14ea2dc7910d6422872c3c0af94c01b77d7dc20
2021-06-21[OOM] Add logs in release scriptSylvain Desbureaux1-2/+8
Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Idbcc165b4e7e051c94548dced56b0d10d2c94ff6
2021-06-09[OOM] Don't fail when plugin is already installedSylvain Desbureaux1-1/+1
Helm plugin throws an error when plugin already installed. Don't fail if it's the case. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: If8bd3e636b0e305bf5502d61306d42d6776a4be6
2021-05-28[OOM] Use new helm repositoriesSylvain Desbureaux2-6/+4
Instead of using "old" repositories, uses the new ones Issue-ID: OOM-2759 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I011a7ff225379a0648de8eadb687d4f7fe0a0fa8
2021-02-19[OOM] fix repo init scriptSylvain Desbureaux1-2/+3
as helm3 binary is no more available, helm repo init script must use `$HELM_BIN` retrieved from prop file. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I56de1ddf62488ef8bd0b4a177263adeeb5149947
2021-01-05Merge "[OOM] make helm3 linting to work"Jessica Wagantall1-2/+2
2021-01-05[OOM] make helm3 linting to workSylvain Desbureaux1-2/+2
chartmuseum was killed by Jenkins when launched. By moving it's outputs to /dev/null, it's no longer the case. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ie358e73a498106ac3abf3731f47a1cb8f01deace
2021-01-04[OOM] Skip faulty install of helm2 stable repoSylvain Desbureaux1-1/+2
Stable repo is not the right one and we also don't need it here for linting. So let's remove it at start. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I2cdd105bf40c588bcea536fcb4af54ba54cdac14
2020-12-18[OOM] use ramdisk to store chartmuseum packagesSylvain Desbureaux1-1/+2
it seems that chartmuseum may block if place where it stores the results is not fast enough. We then create a small ramdisk in order to store these. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I36cad6e56f9390bb058beea08df0bf51eda97a09
2020-12-08Merge "[OOM] add helm3 linting"Jessica Wagantall3-5/+19
2020-12-08[OOM] add helm3 lintingSylvain Desbureaux3-5/+19
As OOM supports helm2 and helm3, it's important to check that all new additions don't break helm3 support. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I38307e3b105606eb3dded1933e3a90673078d4dc [Add helm3 job template boilerplate] Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2020-12-02[OOM] Publish helm charts when releasingSylvain Desbureaux1-2/+1
When a release is created, we want to make and push the charts to a place where everybody can retrieve them instead of making them in their side. Issue-ID: OOM-1238 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ibedfe874c76d4ae11f3f759737e550ba0e5e3d33
2020-04-01Setup integration-docker-compose-logs publisherBartek Grzybowski1-0/+31
Publisher aimed at printing Docker Compose services info at post build stage. Change-Id: Iacad5239243101b91c2aa3d10017748f95b10bcb Issue-ID: INT-1508 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-03Pin python zipp libraryAnil Belur1-1/+1
Zipp just added a hard check for py36. This pins zipp to a version that still works with py35. Issue-ID: CIMAN-33 Change-Id: I01d20fb9cf7a5de6a4f78750b3ee71116dd674bb Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
2020-01-07Merge "Add releasedockerhub command to cron"Bengt Thuree1-0/+56
2020-01-06Add releasedockerhub command to cronBengt Thuree1-0/+56
Executing releasedockerhub command in lftools every week, to ensure that not to many docker images needs to be copied every time, as well as to keep cost down. Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org> Change-Id: I2ccdc236910960b3af3c1f6f1f0c5db062538c9c Issue-ID: CIMAN-1
2019-12-17Global jjb tag override for ONAPVijay Venkatesh Kumar1-0/+50
Related to RELENG-2422 Change-Id: I7d6a99a7fee7eb5a1db2879ecb4398640b836a20 Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-1893 Issue-ID: DCAEGEN2-1862
2019-10-07Correct python environment variableDW Talton2-2/+2
The python environment variable for virtualenv should be $PYTHON not $PYTHON_VERSION. Issue-ID: CIMAN-1 Signed-off-by: DW Talton <dtalton@contractor.linuxfoundation.org> Change-Id: I975bc16efd572ae56b003fde134bed82178de6ff
2019-09-30Fix dcc213d ('max-git-repo-age-hours' behaviour)Artem Naluzhnyy1-1/+1
Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I6b02c57f03b6b8ff9576924e712ed517225822de
2019-09-03Move Coverity Scan toolset out of working directoryArtem Naluzhnyy1-8/+9
This is to avoid static code analysis of the Coverity Scan toolset itself. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I32b6a42ce455ab5f7f5334921f6fde7e41d919f2
2019-09-03Add workaround for broken git repo polling by JenkinsArtem Naluzhnyy1-4/+34
To save our Jenkins lab resources and Coverity Scan submission quota we can run the scan if there were recent commits only. At the moment the following JJB configuration does not work properly for ONAP repositories: triggers: - pollscm: cron: '@daily' As a workaround a new job build parameter is introduced - 'max-git-repo-age-hours'. If set to non-zero run the code scan only if there were no git repository commits last max-git-repo-age-hours hours. It makes sense to set the value twice the 'cron' interval for the job (e.g. if 'cron: @daily', then max-git-repo-age-hours=48). Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I82ce092e9b8bb423e9db8b3958d6cfa3b527b33b
2019-08-17Make COVERITY_USER_EMAIL, SEARCH_PATHS, SEARCH_EXCLUDE_REGEXS configurableArtem Naluzhnyy1-0/+7
Now the Jenkins job parameters are configurable on the WEB since it's usefull for initial Coverity Scan job setup or tuning process. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I6f2f59416966233c24c1b6bc1847d4ebe19a6985
2019-08-17Add DRY_RUN job parameter to bypass actual submission to Coverity serverArtem Naluzhnyy1-51/+55
The Jebkins job parameter can be used during Coverity Scan job initial configuration or tuning process to avoid unnecessary submission quota exhaustion. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I4dfdf7441b8f31fffa2e4afd62bdd871126cdfd5
2019-08-16Dump list of analysed files not tracked by Git repositoryArtem Naluzhnyy1-2/+13
"cov-int/scm-untracked-files.txt" info may be used as a source for 'coverity-search-exclude-regexs' JJB config option to suppress analysis of external 3rd-party and auto-generated sources. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: Ief208e3ac202f5494e9762902f0930890d8c01d8
2019-08-12Add a workaround to suppress specified files from Coverity Scan analysisArtem Naluzhnyy1-8/+29
Re-implement temporary(?) non-functional filter to ignore specific source code parts by Coverity Scan using "--fs-capture-search-exclude-regex" CLI parameter of "cov-build" tool. This functionality is important to filter out e.g. node_modules or src/tests. Instead we can remove all specified files after we got local build results but before we send them to Coverity server. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I1175b593966a8b8732aa3f6841e9c450766de752
2019-08-01Add more attempts to submits Coverity Scan resultsArtem Naluzhnyy1-12/+33
Since the build process takes a lot of time and resources on our Jenkins executors it had better try to resubmit our results to Coverity Scan server if it replies with non-200 HTTP response. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I8fd24d9f4f6181ff6e0817914ac649a140706b7e
2019-07-01Add static code analysis support for JavaScript/Python/Ruby/PHP.Artem Naluzhnyy1-1/+21
Two JJB project parameters have been introduced: * 'coverity-search-paths' - space separated list of paths that contain source code to analyse; * 'coverity-search-exclude-regexs' - space separated list of file name regexps to exclude from analysis. Example: project: name: 'sdc-coverity' jobs: - onap-gerrit-maven-coverity ... coverity-search-paths: 'catalog-ui/src/ openecomp-ui/src/ dox-sequence-diagram-ui/src' coverity-search-exclude-regexs: '/node_modules/' Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I8050a75a731c893ec2173f66d2e881fcc0877ed0
2019-06-27Archive Coverity analysed files list to the logs serverArtem Naluzhnyy1-0/+10
The list is stored in "cov-int/coverity-scan-analysed-files.log". Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: Id27cb466977e0bd11e004fd819f66697ca16c26b
2019-06-12Validate downloaded Coverity tool checksumArtem Naluzhnyy1-0/+14
Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I73dae5c4c5bd3dd73957809b4265009b529ebca0
2019-06-12Check Coverity service API usage quotaArtem Naluzhnyy1-0/+25
Check if we are allowed to submit results to Coverity Scan service and have not exceeded our upload quota limits. See also: https://scan.coverity.com/faq#frequency Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I71479cfdd8403e717e6c807a8afb5aadad25fdde
2019-06-10Add JJB template for static code analysis by Coverity Scan serviceArtem Naluzhnyy1-0/+97
"onap-gerrit-maven-coverity" JJB template runs 'mvn clean install' and then publishes results to Coverity Scan service for static code analysis. Usage example: - project: name: so-coverity jobs: - onap-gerrit-maven-coverity cron: '@daily' build-node: 'ubuntu1604-builder-4c-4g' project: 'so' project-name: 'so' branch: 'master' mvn-settings: 'so-settings' mvn-goals: 'clean install' mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' mvn-params: '-Dmaven.test.skip=true' coverity-project-name: 'onap-so' coverity-token: 'PUT COVERITY TOKEN HERE' coverity-user-email: 'PUT USER EMAIL HERE' Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: I6f4fa6359b5be91932c5a1a1ed7ba0a4068ac152
2019-04-17Add external verify job for HELMJessica Wagantall1-0/+18
This new verify job will: - Apply to code transfered outside OOM repo into the tech team's repos. - Get triggered by any submitted changes in <component>/oom repos. - Apply the change in oom/kubernetes/<component> - Run a helm verify Change-Id: I4bd60f946351623583589d7689343fbfc826237a Issue-ID: CIMAN-250 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2018-11-28Add branch name for nexus helm chartsJeremy Phelps1-5/+5
Issue-ID: CIMAN-223 Change-Id: Ieeaf53ef868ee60f30427d6bce6a7d44a5c4d9fd Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
2018-08-23Add helm-chart publishing scriptJeremy Phelps1-0/+32
Issue-ID: CIMAN-164 Change-Id: Iae6f765c2f8a7953a308f2ce81e79e4f633a1a2e Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
2018-08-09Instantiate helm jobsJeremy Phelps1-0/+9
Issue-ID: CIMAN-164 Change-Id: I020e408c98af2b5ed3f50661f70b7fe2b2912199 Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
2018-05-16Store staging and snapshot artifict in same repoDenes Nemeth1-3/+3
ONAP community is not using the a separate repo for storing snapshot and staging artifacts. The change parameterises the docker build to be able to separately control the target repository and the build artifact type (snapshot / staging). It will also store the staging and snapshots in the same repo (10003). Change-Id: I505023a7cdab90fa8ecfeb540f6306f0e19c3d6d Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-728
2018-05-15Tag docker images with latest tag tooDenes Nemeth2-5/+13
Change-Id: Ic9c47ab3792db1cd52f2a11d94d2d4414aef507b Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-728
2018-04-26Fix Pypi script Python versionJessica Wagantall2-2/+2
Fix Pypi build and publish scripts to run virtualenv with the correct PYTHON_VERSION specified in the job templates. Change-Id: I71f61775380ae56c204854ddde254b467e5e16f3 Issue-ID: Issue-ID: CIMAN-137 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>