GVKun编程网logo

04-MirrorGate 安装脚本备注(mirror插件)

13

在本文中,我们将为您详细介绍04-MirrorGate安装脚本备注的相关知识,并且为您解答关于mirror插件的疑问,此外,我们还会提供一些关于01-Mirrorgate简介、02-Centos7安装

在本文中,我们将为您详细介绍04-MirrorGate 安装脚本备注的相关知识,并且为您解答关于mirror插件的疑问,此外,我们还会提供一些关于01-Mirrorgate简介、02-Centos7安装部署Mirrorgate、03-Centos7 安装部署 Mirrorgate - 踩坑记录、05-Mirrorgate 数据库信息的有用信息。

本文目录一览:

04-MirrorGate 安装脚本备注(mirror插件)

04-MirrorGate 安装脚本备注(mirror插件)

1.run.sh

#!/usr/bin/env bash

set -e

#当收到EXIT信号时执行这条命令,需要提前安装好docker-compose docker 并启动docker。 trap
''docker-compose -p ${BUILD_TAG} down --volumes;'' EXIT
if [ -z ${BUILD_TAG+x} ]; then export BUILD_TAG=tests; fi if [ -n "$MONGODUMP_BUCKET" ]; then dumps=(`aws s3 --profile $AWS_PROFILE --region $AWS_REGION ls $MONGODUMP_BUCKET/ | awk ''{print $4}''`) last_dump=${dumps[-1]} if [ ! -f /tmp/${last_dump} ]; then aws s3 --profile $AWS_PROFILE --region $AWS_REGION cp $MONGODUMP_BUCKET/${last_dump} /tmp fi tar -xf /tmp/${last_dump} --directory /tmp rm -frd /tmp/latest_mongo_dump || true mkdir /tmp/latest_mongo_dump cp -R /tmp/${last_dump%%.*} /tmp/latest_mongo_dump/dump docker-compose -p ${BUILD_TAG} run -u $(id -u) mongo-populate-dump else docker-compose -p ${BUILD_TAG} run -u $(id -u) mongo-populate-test fi docker-compose -p ${BUILD_TAG} run -u $(id -u) --service-ports app

 

本文同步分享在 博客 “MASCOT”(CNBlog)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与 “OSC 源创计划”,欢迎正在阅读的你也加入,一起分享。

01-Mirrorgate简介

01-Mirrorgate简介

1.项目信息

MirrorGate

MirrorGate是一款WallBoard应用程序,旨在为团队提供与软件开发相关的所有不同领域的快速反馈。

license GitHub issues GitHub stars GitHub forks Docker Stars Docker Pulls

项目地址:https://github.com/BBVA/mirrorgate   最新版本0.3.0

原readme地址:https://github.com/BBVA/mirrorgate/blob/v0.3.0/README.md

 

2.为什么这个名字?

MirrorGate旨在从各个角度,从规划到用户的反馈,显示有关软件外观的相关信息。

因此,团队可以看到他们的工作得到反映,帮助他们进行自我批评和持续改进。它旨在通过让团队了解其开发的软件及其流程的外观,来提高软件质量和产品上市时间。

也就是说,说实话,这一切都来自于以下对话The Never Ending Story

  • Engywook:接下来是魔镜门。Atreyu必须面对他的真实自我。
  • Falcor:那又怎样?这对他来说不会太难。
  • Engywook:哦,这就是每个人的想法!善良的人发现他们很残忍。勇敢的人发现他们真的是懦夫!面对他们真实的自我,大多数男人都在尖叫。

3.功能

详细信息仪表板

提供以下信息:

  • Sprint提前状态和积压改进。
  • 程序增量(PI)提前状态。
  • 通过关键性进行可视化。
  • 每个存储库构建状态。
  • 建立统计和失败趋势。
  • 市场对iTunes,PlayStore或直接捕获的移动应用程序的反馈
  • 来自Google Analytics和Adobe Analytics的活跃用户。
  • AWS运营指标。
  • 警报。
  • 松弛通知。

    

 

聚合仪表板

它还提供了一个视图,您可以在一个视图中显示多个产品仪表板,并提供更多信息。

 

后台

此外,MirrorGate还提供了一个可以配置仪表板的后台应用程序。

 

 4.支持的浏览器

在MirrorGate中,我们使用一些边缘HTML和CSS功能,因此目前仅支持最新的Chrome和Firefox版本(即目前不支持IE和Safari)。

 

5.收集反馈

MirrorGate生态系统包括一个市场收集器,可以直接从iOS和Android应用商店获取反馈。

尽管如此,它还提供了一个端点,可以调用端点直接发送特定产品的反馈(直接从前面通过表单发布或ajax请求或从服务器端发送)。

 

本文同步分享在 博客“MASCOT”(CNBlog)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

02-Centos7安装部署Mirrorgate

02-Centos7安装部署Mirrorgate

1.以Docker方式运行

MirrorGate服务器作为docker镜像提供,因此要运行它只需在终端中执行以下命令:

注意mongo镜像要使用3.6版本,其他版本会提示版本问题。

#Spinup mongo db
docker run --name mongo mongo > /dev/null &

#Run mirrorgate without security
docker run --env "SPRING_DATA_MONGODB_URI=mongodb://mongo:27017/dashboard" --env "SPRING_PROFILES_ACTIVE=embedded" --link="mongo" -p8080:8080 bbvaae/mirrorgate

 

访问mirrorgate服务器的控制台,创建一个新的仪表盘,设置“BuildJobs”字段为MirrorGateTest。点击eys图标保存到仪表盘中。

在打开保存仪表板的同时运行以下命令:

curl -0 -v http://localhost:8080/api/builds \
-H "Expect:" \
-H ''Content-Type: application/json; charset=utf-8'' \
-d @- << EOF
{
    "number" : "$(date +%s)",
    "buildStatus" : "Failure",
    "buildUrl": "#$(date +%s)",
    "timestamp": $(date +%s)000,
    "projectName" : "MirrorGateTest",
    "repoName" : "MyRepo",
    "branch" : "master"
}
EOF
您现在可以在打开的仪表板中看到构建状态。

2.组件

为了操作 ,Mirrorgate需要几个组件:

  主mirrorgate应用程序: 使用docker bbva-ae/mirrorgate容器执行。

      MongoDB数据库: 应该使用SPRING_DATA_MONGODB_URI环境变量绑定到应用程序。

      收集者:收集者是负责向应用程序收集和推送消息的组件。当前有以下组件

          Jenkins插件:是一个从jenkinsCI服务器推送消息的插件。

          JIRAcollector :是一个独立的应用程序。可以在每个可配置的时间内轮询jira服务器以进行更改。

 

3.对于开发人员

构建项目所需依赖:

  nodejs >= 6   jdk >= 7    docker   docker-compose

项目结构:

[root@node1 mirrorgate-0.3.0]# ll  | awk ''{print $NF}''
60
CHANGELOG.md
CONTRIBUTING.md
docker   # 包含工具来构建一个mirrorgate镜像
Jenkinsfile
LICENSE
mirrorgate-api     #包含API后端源
mirrorgate-backoffice   #包含仪表盘管理应用程序
mirrorgate-dashboard    #包含前端源码
mirrorgate-docs
README.md
scripts
tests      # 包含应用程序,将所有部分放在一起,并在开发时将他们作为一个整体执行

 

4.如何安装?

0.确保已经安装了上面所说的依赖项
1.克隆mirrorgate项目的源代码
2.执行 sh scripts/buildAndRun.sh
3.等待一段时间直到 tomcat启动 端口为8080
4.打开浏览器访问 http://localhost:8080/mirrorgate/backoffice/ index.html

 

5.安装补充

运行buildAndRun.sh 其实就是执行 buildAll.sh  然后再tests目录运行run.sh完成。我在安装的期间出现了很多问题,所有建议安装的时候一步一步的安装,不要直接运行整个脚本,这样会很难排查问题。 脚本中pushed 是进入到某个目录  popd 是删除目录。以下是buildAll.sh的脚本内容。在执行脚本前,将npm源改成国内淘宝的,还有gradle 也需要改一下maven的仓库地址。 详见FAQ文档。

#!/usr/bin/env bash

set -e

CUR_DIR=$(pwd)
trap ''cd $CUR_DIR'' EXIT
cd "$(dirname "$0")"

#构建dashboard pushd ..
/mirrorgate-dashboard # npm install --unsafe-perm=true --allow-root #添加后面这两个选项否则后面可能会出现权限问题 $(npm bin)/bower install --allow-root #必须添加--allow-root选项,不加以root运行后面必出权限问题 $(npm bin)/gulp dist # popd
#构建后台 pushd ..
/mirrorgate-backoffice ## npm install --unsafe-perm=true --allow-root #同上 npm run build ## popd # #pushd ../mirrorgate-docs # #npm install --unsafe-perm=true --allow-root && ./node_modules/.bin/bower install --allow-root #同上 #npm run build # #popd #

#构建 API pushd ..
/mirrorgate-api # ./gradlew clean build # popd

 

本文同步分享在 博客“MASCOT”(CNBlog)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

03-Centos7 安装部署 Mirrorgate - 踩坑记录

03-Centos7 安装部署 Mirrorgate - 踩坑记录

FAQ

1. 没有安装 bzip2

解决方法 yum -y install bzip2

> phantomjs-prebuilt@2.1.16 install /root/test/mirrorgate/mirrorgate-dashboard/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
  [========================================] 99%
Received 22866K total.
Extracting tar contents (via spawned process)
Error extracting archive
Phantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar (child): bzip2:无法 exec: 没有那个文件或目录
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

 2. 未知错误

google 一下貌似跟权限有关系 添加参数

npm install --registry https://registry.npm.taobao.org  --unsafe-perm=true --allow-root

> wd@1.11.0 install /root/test/mirrorgate/mirrorgate-dashboard/node_modules/wd
> node scripts/build-browser-scripts

/root/test/mirrorgate/mirrorgate-dashboard/node_modules/mkdirp/index.js:90
                    throw err0;
                    ^

Error: EACCES: permission denied, mkdir ''/root/test/mirrorgate/mirrorgate-dashboard/node_modules/wd/build''
    at Object.mkdirSync (fs.js:750:3)
    at sync (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/mkdirp/index.js:71:13)
    at Object.<anonymous> (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/wd/scripts/build-browser-scripts.js:6:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: `node install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wd@1.11.0 install: `node scripts/build-browser-scripts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the wd@1.11.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-11-24T11_45_35_121Z-debug.log

 

3. 未知错误

[root@node1 mirrorgate-dashboard]# gulp dist
fs.js:115
    throw err;
    ^

Error: ENOENT: no such file or directory, scandir ''/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/vendor''
    at Object.readdirSync (fs.js:783:3)
    at Object.getInstalledBinaries (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/lib/extensions.js:130:13)
    at foundBinariesList (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/lib/errors.js:20:15)
    at foundBinaries (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/lib/errors.js:15:5)
    at Object.module.exports.missingBinary (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/lib/errors.js:45:5)
    at module.exports (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/lib/binding.js:15:30)
    at Object.<anonymous> (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/gulp-sass/index.js:162:21)
    at Module._compile (internal/modules/cjs/loader.js:688:30)

4.mirrorgate-api 使用 gradle build 失败

[root@node1 mirrorgate-api]# gradle build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project ''mirrorgate-api''.
> Could not resolve all artifacts for configuration '':classpath''.
   > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE.
     Required by:
         project :
      > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE.
         > Could not get resource ''https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/1.5.3.RELEASE/spring-boot-gradle-plugin-1.5.3.RELEASE.pom''.
            > Could not GET ''https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/1.5.3.RELEASE/spring-boot-gradle-plugin-1.5.3.RELEASE.pom''.
               > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: connect timed out

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 32s

很明显仓库地址链接不到,换成国内的仓库地址。

vim build.gradle

buildscript {
    ext {
        springBootVersion = ''1.5.3.RELEASE''
    }
    repositories {
//mavenCentral()
//jcenter()
//新增 repositories { maven{ url ''http://maven.aliyun.com/nexus/content/groups/public/''} } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } }

又一个错误,重新执行 gradle build 既然好了

[root@node1 mirrorgate-api]# gradle build
<-------------> 0% EXECUTING [1m 46s]
<-------------> 0% EXECUTING [1m 46s] of :compileClasspath > slack-ap<----------<-------------> 0%<-----<----<<<-<-<> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration '':compileClasspath''.
> Could not resolve com.github.allbegray:slack-api:v1.4.0.RELEASE.
  Required by:
      project :
   > Skipped due to earlier error
   > Could not resolve com.github.allbegray:slack-api:v1.4.0.RELEASE.
      > Could not get resource ''https://jitpack.io/com/github/allbegray/slack-api/v1.4.0.RELEASE/slack-api-v1.4.0.RELEASE.pom''.
         > Could not GET ''https://jitpack.io/com/github/allbegray/slack-api/v1.4.0.RELEASE/slack-api-v1.4.0.RELEASE.pom''.
            > Connect to jitpack.io:443 [jitpack.io/104.24.22.62, jitpack.io/104.24.23.62, jitpack.io/2606:4700:20:0:0:0:6818:173e, jitpack.io/2606:4700:20:0:0:0:6818:163e] failed: 网络不可达 (connect failed)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use ''--warning-mode all'' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 6s
1 actionable task: 1 executed

 解决方法: vim build.gralde

repositories {
    mavenCentral()
    maven {
        name "jitpack.io"
        //url "https://jitpack.io"
        url "http://maven.aliyun.com/nexus/content/groups/public/"
    }
}

 jre 问题,需要安装完整的 jdk

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task '':compileJava''.
> Could not find tools.jar. Please check that /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre contains a valid JDK installation.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use ''--warning-mode all'' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 11s
1 actionable task: 1 executed

 

本文同步分享在 博客 “MASCOT”(CNBlog)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与 “OSC 源创计划”,欢迎正在阅读的你也加入,一起分享。

05-Mirrorgate 数据库信息

05-Mirrorgate 数据库信息

1. 登录数据库

[root@node1 ~]# mongo localhost:27017
> show dbs;
admin        0.000GB
dashboarddb  0.001GB
local        0.000GB
> use dashboarddb
switched to db dashboarddb
> show tables;
collectors
builds_summary
events
reviews
feature
historic_user_metrics
builds
dashboards
user-metrics
commits

 

2. 数据表信息

builds_summary 表

> db.builds_summary.find()
{ "_id" : ObjectId("5bfa8b5ba7b11b0006631220"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "all-ok", "repoName" : "all-ok", "statusMap" : { "Success" : NumberLong(2) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631221"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "dynamic", "repoName" : "dynamic", "statusMap" : { "Success" : NumberLong(2) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631222"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "failed-integration", "repoName" : "failed-integration", "statusMap" : { "Success" : NumberLong(1), "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631223"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "failed-master", "repoName" : "failed-master", "statusMap" : { "Failure" : NumberLong(1), "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631224"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "mirrorgate-jenkins-plugin", "statusMap" : { "Success" : NumberLong(3), "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(4), "totalDuration" : 40320440 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631225"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "mirrorgate-app", "statusMap" : { "Success" : NumberLong(6), "Failure" : NumberLong(2), "Unstable" : NumberLong(1) }, "totalBuilds" : NumberLong(9), "totalDuration" : 32388820 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631226"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "jira-collector", "statusMap" : { "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 23452230 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631227"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "design", "statusMap" : { "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 23452340 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631228"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "no-master", "repoName" : "no-master", "statusMap" : { "Failure" : NumberLong(1), "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631229"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "only-branch", "repoName" : "only-branch", "statusMap" : { "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b000663122a"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "two-and-one-failed-master", "repoName" : "failed", "statusMap" : { "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b000663122b"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "two-and-one-failed-master", "repoName" : "ok", "statusMap" : { "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 0 }

events 表

> db.events.find()
{ "_id" : ObjectId("5bfa8da0a7b11b000663122d"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Event", "timestamp" : NumberLong("1543146912780"), "eventTypeCollectionId" : ObjectId("5bfa8d5aa7b11b000663122c"), "eventType" : "DETAIL" }
{ "_id" : ObjectId("5bfa8f47a7b11b000663122e"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Event", "timestamp" : NumberLong("1543147335073"), "eventTypeCollectionId" : ObjectId("5bfa8d5aa7b11b000663122c"), "eventType" : "DETAIL" }

reviews 表

> db.reviews.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e92f"), "appname" : "moods", "starrating" : 3.5, "platform" : "Android", "amount" : 20 }
{ "_id" : ObjectId("5bfa8b31645898022b01e930"), "appname" : "moods", "starrating" : 4.3, "platform" : "IOS", "amount" : 10 }
{ "_id" : ObjectId("5bfa8b31645898022b01e931"), "timestamp" : 1542282289193, "appname" : "moods", "authorName" : "Kike", "starrating" : 3, "comment" : "Pufff!", "platform" : "IOS" }
{ "_id" : ObjectId("5bfa8b31645898022b01e932"), "timestamp" : 1542714289193, "appname" : "moods", "authorName" : "Kike", "starrating" : 4, "comment" : "It''s now beter!", "platform" : "IOS" }
{ "_id" : ObjectId("5bfa8b31645898022b01e933"), "timestamp" : 1542282289193, "appname" : "moods", "authorName" : "Kike", "starrating" : 5, "comment" : "Awesome!", "platform" : "Android" }
{ "_id" : ObjectId("5bfa8b31645898022b01e934"), "timestamp" : 1541418289193, "appname" : "moods", "authorName" : "Ana", "starrating" : 4, "comment" : "Buen diseño", "platform" : "Android", "amount" : 1 }
{ "_id" : ObjectId("5bfa8b31645898022b01e935"), "timestamp" : 1542887089193, "appname" : "moods", "authorName" : "Ana", "starrating" : 4, "comment" : "Buen diseño", "platform" : "Android" }
{ "_id" : ObjectId("5bfa8b31645898022b01e936"), "timestamp" : 1539690289193, "appname" : "moods", "authorName" : "kike", "starrating" : 4, "comment" : "Consume mucho", "platform" : "Android" }

feature 表

> db.feature.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e807"), "sId" : "430210", "sNumber" : "DOST05-47", "sName" : "[ISW] Build failure rate", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 3, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e808"), "sId" : "46093", "sNumber" : "DOST05-90", "sName" : "SPIKE: Analyze the cost of migrating", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 3, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e809"), "sId" : "46095", "sNumber" : "DOST05-92", "sName" : "Login", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 8, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e80a"), "sId" : "46094", "sNumber" : "DOST05-91", "sName" : "Distribute application", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 5, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }

builds 表

> db.builds.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e908"), "timestamp" : 1543139089149, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "all-ok", "repoName" : "all-ok", "branch" : "master", "keywords" : [ "http://fake.url", "all-ok", "all-ok" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e909"), "timestamp" : 1543139089149, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "all-ok", "repoName" : "all-ok", "branch" : "develop", "keywords" : [ "http://fake.url", "all-ok", "all-ok" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e90b"), "timestamp" : 1543139089161, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "dynamic", "repoName" : "dynamic", "branch" : "master", "keywords" : [ "http://fake.url", "dynamic", "dynamic" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e90c"), "timestamp" : 1543139089161, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "dynamic", "repoName" : "dynamic", "branch" : "develop", "keywords" : [ "http://fake.url", "dynamic", "dynamic" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e90e"), "timestamp" : "aaa", "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "errored", "repoName" : "errored", "branch" : "master", "keywords" : [ "http://fake.url", "errored", "errored" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e910"), "timestamp" : 1543139089166, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "failed-integration", "repoName" : "failed-integration", "branch" : "master", "keywords" : [ "http://fake.url", "failed-integration", "failed-integration" ] }

dashboards 表

> db.dashboards.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e7ff"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Dashboard", "name" : "mirrorgate", "logoUrl" : "/mirrorgate/img/logo.png", "type" : "Custom", "columns" : [ [ "bugs", "current-sprint", "next-sprint" ], [ "scm-metrics", "builds", "buildsstats" ], [ "program-increment" ], [ "markets", "reviews", "user-metrics", "operations" ] ], "codeRepos" : [ "mirrorgate-app", "MirrorGate", "jira-collector", "design" ], "applications" : [ ], "analyticViews" : [ "1234123" ], "boards" : [ "MirrorGate" ], "lastTimeUsed" : NumberLong("1543147032285"), "programIncrement" : "MG[0-9]{2}", "skin" : "classic", "marketsStatsDays" : 7, "gitRepos" : [ "ssh://git@fake.com:fake/repo1.git" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e800"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Dashboard", "name" : "all-the-stuff", "displayName" : "All the indicators", "logoUrl" : "/mirrorgate/img/logo.png", "columns" : [ [ "scm-metrics", "current-sprint", "bugs" ], [ "program-increment", "next-sprint" ], [ "builds", "buildsstats" ], [ "markets", "reviews", "user-metrics", "operations-metrics" ], [ "alerts" ] ], "codeRepos" : [ "mirrorgate-app", "MirrorGate", "jira-collector", "design" ], "applications" : [ "moods" ], "analyticViews" : [ "1234123" ], "boards" : [ "MirrorGate" ], "slackTeam" : "All", "lastTimeUsed" : NumberLong("1543147249260"), "programIncrement" : "MG02", "urlAlerts" : "alerts", "skin" : "classic", "marketsStatsDays" : 7 }
{ "_id" : ObjectId("5bfa8b31645898022b01e801"), "name" : "program-increment", "displayName" : "Program Increment", "codeRepos" : [ "mirrorgate-app", "MirrorGate", "jira-collector", "design" ], "boards" : [ "MirrorGate2" ], "programIncrement" : "2017_PI03" }
{ "_id" : ObjectId("5bfa8b31645898022b01e802"), "name" : "nothing" }
{ "_id" : ObjectId("5bfa8b31645898022b01e803"), "name" : "empty", "codeRepos" : [ ], "applications" : [ ], "boards" : [ ] }

user-metrics 表

> db.user-metrics.find()
2018-11-25T07:23:13.142-0500 ReferenceError: metrics is not defined

commits 表

> db.commits.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e942"), "id" : "1234123", "repository" : "ssh://git@fake.com:fake/repo1.git", "timestamp" : 1518009865, "branches" : { "refs/remotes/origin/master" : 1519231554 } }
{ "_id" : ObjectId("5bfa8b31645898022b01e943"), "id" : "1234124", "repository" : "ssh://git@fake.com:fake/repo1.git", "timestamp" : 1518009865, "branches" : { "refs/remotes/origin/master" : 1519231554 } }

 

 

 

本文同步分享在 博客 “MASCOT”(CNBlog)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与 “OSC 源创计划”,欢迎正在阅读的你也加入,一起分享。

我们今天的关于04-MirrorGate 安装脚本备注mirror插件的分享就到这里,谢谢您的阅读,如果想了解更多关于01-Mirrorgate简介、02-Centos7安装部署Mirrorgate、03-Centos7 安装部署 Mirrorgate - 踩坑记录、05-Mirrorgate 数据库信息的相关信息,可以在本站进行搜索。

本文标签: