Skip to main content

Upload reports to BitBucket server for use with the Code Insights feature

Project description

bitbucket-code-insight-reports

Azure DevOps builds Azure DevOps tests Azure DevOps coverage

PyPI - Version PyPI - License PyPI - Python Versions PyPI - Format PyPI - Status PyUp - Updates

Upload reports to BitBucket server for use with the Code Insights feature.

Designed to be extensible, so it can be hooked to anything that outputs file paths, line numbers and errors.

Features

  • Report failing lines from the output of terraform fmt --diff -check -recursive

Usage

usage: bitbucket-code-insight-reports [-h] -u USER [-p PASSWORD] --report_key
                                      REPORT_KEY --report_title REPORT_TITLE
                                      --report_desc REPORT_DESC --report_type
                                      {terraform,custom} --base_url BASE_URL
                                      --project_key PROJECT_KEY --repo_slug
                                      REPO_SLUG --commit COMMIT
                                      [--status {PASS,FAIL}]
                                      [--annotations ANNOTATIONS]

Uploads information to code insights in BitBucket.

optional arguments:
  -h, --help            show this help message and exit

Authentication Options:
  -u USER, --user USER  User to authenticate with BitBucket
  -p PASSWORD, --password PASSWORD
                        Password to authenticated with BitBucket

Report Options:
  Options to configure the report

  --report_key REPORT_KEY
                        BitBucket key for report.
  --report_title REPORT_TITLE
                        Human readable title for report.
  --report_desc REPORT_DESC
                        Description for the report.
  --report_type {terraform,custom}
                        Report type

BitBucket Configuration:
  Info to access the repository and PR

  --base_url BASE_URL   URL of the BitBucket server.
  --project_key PROJECT_KEY
                        BitBucket key for the project.
  --repo_slug REPO_SLUG
                        Name of repo in BitBucket.
  --commit COMMIT       Commit hash for the commit to upload the report to.

Custom Report Options:
  Arguments only for use with the custom report type.

  --status {PASS,FAIL}  Status of the report, PASS/FAIL.
  --annotations ANNOTATIONS
                        Annotations in a JSON string as shown in
                        https://docs.atlassian.com/bitbucket-
                        server/rest/5.16.0/bitbucket-code-insights-
                        rest.html#idm361726402736

Credits

This package was created with Cookiecutter and the tomtom-international/cookiecutter-python project template.

Changelog

0.0.1-dev (2019-06-20)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitbucket_code_insight_reports-0.0.3.tar.gz (14.8 kB view details)

Uploaded Source

File details

Details for the file bitbucket_code_insight_reports-0.0.3.tar.gz.

File metadata

  • Download URL: bitbucket_code_insight_reports-0.0.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for bitbucket_code_insight_reports-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0939bbce0eea014f63716a1ef50d294071a28465dc86033a4ed15ac3124c2d5a
MD5 2f29adff45501ddadcc8f331355cbcf2
BLAKE2b-256 6ecb8d4b9b6d89aae46a1ae438d1b21b843dc4060e7965e2ea17ea17ef4547bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page