将报告上载到Bitbucket服务器以用于代码洞察功能

bitbucket-code-insight-reports的Python项目详细描述


Bitbucket代码洞察报告

Azure DevOps buildsAzure DevOps testsAzure DevOps coverage

PyPI - VersionPyPI - LicensePyPI - Python VersionsPyPI - FormatPyPI - StatusPyUp - Updates

将报告上载到Bitbucket服务器,以便与代码细节功能一起使用。

设计成可扩展的,所以它可以连接到输出文件路径、行号和错误的任何东西。

功能

  • 报告来自terraform fmt --diff -check -recursive
  • 输出的失败行
  • 报告来自git diff输出的失败行(必须提供输入文件)

用法

usage: bitbucket-code-insight-reports [-h] [--file FILE] -u USER [-p PASSWORD]
                                      --report_key REPORT_KEY --report_title
                                      REPORT_TITLE --report_desc REPORT_DESC
                                      --report_type
                                      {terraform,git-diff,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
  --file FILE           Input file for report (not required for all report
                        types.

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,git-diff,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

学分

这个包是用Cookiecuttertomtom-international/cookiecutter-python项目模板创建的。

更改日志

0.0.1-偏差(2019-06-20)

  • pypi上的第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java InputStream对象在声明后关闭   java未定义名为“transactionManager”的bean重命名transactionManager   java“jar”命令何时会拒绝将类添加到java中。jar文件?   java JPA标准依赖WHERE子句   安卓中从SD卡读取文本文件时出现java错误   java直接启用类似位置的权限   使用@WebMvcTest和Mockito-BDDMockito对SpringBoot-RestController进行java测试   java JSESSIONID存储在哪里?   java jtextarea鼠标事件覆盖容器鼠标事件   java DRL无法解析动态加载的类   java是从一个方法返回多个对象的最简单方法   java自定义按钮/编辑框是否不可见?   java GUI如何在保存用户输入的同时在面板或框架之间切换   swing Java自定义JSlider不会更新   GridBagLayout中的java超过1个JPanel   java从ProjectReactor中的flux中采样除第一个元素外的所有元素   Java泛型和泛型类型   Java代码生成宽指令的jvm