tree: c3a30868d7b30876327cdf16910e10e7da3e28da [path history] [tgz]
  1. rp_reporter/
  2. README.md
  3. setup.py
rp_reporter/README.md

Install

In case of existed git repository

pip install .

or

pip install git+https//gerrit/path_in_gerrit TODO

Use as a cli

It will proceed to all child job and to find defined xml reports (defined in code)

rp-reporter report-job https://mos-ci.infra.mirantis.net/job/deploy_job/58/

The next command should upload testresults for all jobs from the defined view. Tool takes into account only the last built builds

rp-reporter  report-view "https://mos-ci.infra.mirantis.net/view/MOSK%2024.3%20CI/"  

Use as a module

import rp_reporter
rp_reporter.upload_job("https://mos-ci.infra.mirantis.net/job/test-os-deploy-extended-core-ceph-local-non-dvr-ironic-mt-caracal-portgroups/6/", True)

Configuration file

By default, it's located in ~/.reportportal_config You can change the default location by defining the RP_CONFIG_FILE environment variable

Example of config file

Config file is formatted as yaml

RP_APIKEY: <a lot of symbols>
RP_ENDPOINT: http://172.19.124.20/
RP_PROJECT: oscore

RP_APIKEY can be obtained in ReportPortal by url http://reportportal_url/ui/#userProfile/apiKeys

All variables in configfile can be overwriten by defining the according environment variable