Code Monkey home page Code Monkey logo

gitlab-ci-dashboard's Introduction

πŸ“ŠGitLab CI Dashboard

npm npm (tag) npm GitHub issues

Node.js CI codecov

GitHub license

Dashboard for monitoring GitLab CI builds and pipelines for TV. This is a fork from gitlab-ci-monitor.

Example

Gitlab support

  • Gitlab: 8.30.4, and 10.1.4
  • Gitlab API: V3 and V4

Usage

This project can runs completely in the browser with few parameters on querystring or run in standalone mode using command-line, you can use querystring parameters or using all parameters on json config file.

Parameters

  • config: path or url to config file

  • gitlab: your gitlab server address

  • token: your gitlab token

  • projectsFile/projects:

    • using projectsFile: url to file that contains a list of projects you want to monitor, see below how to create it
    • using projects: list or project you want to moniro, see below how to create it
  • gitlabciProtocol (optional): protocol to access gitlabci api. Default: https

  • hideSuccessCards (optional): hide cards when change to success status. Default: false

  • hideVersion (optional): hide version of cards. Default: false

  • interval (optional): interval, in seconds, that monitor go to gitlab server take a new data. Default 60

  • apiVersion (optional): Gitlab API version. Default: 3

Of note, for this service to work it exposes an unauthenticated endpoint /params that includes your Gitlab API token. To ensure this is kept secret (as it should be), you should make sure to host this application in a fashion that it's only accessible to a local / private network. If the application is hosted at at a publicly accessible address, anyone can hit the /params endpoint and obtain your Gitlab API token. This would allow that third party to make requests to your Gitlab server on your behalf, potentially leaking sensitive information (like your source code).

json config sample

{
  "dashboard": {
    "config": {
      "gitlab": "gitlab.example.com",
      "token": "123456",
      "gitlabciProtocol": "https",
      "hideSuccessCards": false,
      "hideVersion": false,
      "interval": 60,
      "apiVersion": 3
    },
    "projects": [
      {
        "description": "React Native render for draft.js model",
        "namespace": "globocom",
        "project": "react-native-draftjs-render",
        "branch": "master"
      }
    ]
  }
}

With these parameters, it will try to fetch the list of projects that this token has access. Then, it will filter the list by the projects parameter and show only the ones that have builds (i.e., that have GitLab CI enabled). Finally, it will show the status from the most recent build in master or the branch you have specified.

Standalone Example:

gitlab-ci-dashboard --gitlab gitlab.example.com --token 2345 --projectsFile ./example.json

## or if you using json config file, just:

gitlab-ci-dashboard --config ./config.json

Server hosted Example:

http://gitlab-ci-dashboard.example.com/?gitlab=gitlab.example.com&token=12345&projectsFile=http://gitlab-ci-dashboard.example.com/example.json

## or if you using json config file, just:

http://gitlab-ci-dashboard.example.com/?config=http://gitlab-ci-dashboard.example.com/config.json

Standalone

# install globally
npm install -g gitlab-ci-dashboard

# run standalone http server
gitlab-ci-dashboard --gitlab gitlab.example.com --token 12345 --projectsFile ./file.json

## or if you using json config file, just:
gitlab-ci-dashboard --config ./config.json

# access https://localhost:8081/?standalone=true on browser

Server hosted

# install dependencies
yarn install

# build for production with minification
yarn build

# Copy content of dist folder to your server

Available scripts

# install dependencies
yarn install

# serve with hot reload at localhost:8080
yarn dev

# build for production with minification
yarn build

# run http server to access the monitor
yarn server

# run http server to access mocked gitlab-ci api
yarn gitlab-mocked-server

# build for production and view the bundle analyzer report
yarn build --report

# run unit tests
yarn unit

# run e2e tests
yarn e2e

# run all tests
yarn test

How to develop

# run dev
yarn dev

# run gitlab-ci mock server
yarn gitlab-mocked-server

# open on browser
http://localhost:8080/?gitlab=localhost:8089&token=_&projectsFile=http://localhost:8080/static/file.json&gitlabciProtocol=http&interval=5

projectsFile migration from versions earlier to 5.x

If your dashboard is using the projectsFile pattern below:

{
  "nameWithNamespace": "native/gitlab-ci-monitor",
  "projectName": "gitlab-ci-monitor",
  "branch": "hackday"
},

Run migration command:

# migration command
gitlab-ci-dashboard-migration --projectsFile example.json

projectsFile creation from gitlab-ci-monitor base project

Take your url dashboard

http://gitlab-ci-monitor.example.com/?gitlab=gitlab.example.com&token=12345&projects=namespace/project1,namespace/project1/branch,namespace/project2

Run migration command:

# migration command
gitlab-ci-dashboard-migration --querystring http://gitlab-ci-monitor.example.com/?gitlab=gitlab.example.com&token=12345&projects=namespace/project1,namespace/project1/branch,namespace/project2

The projects.json would be created

Using

VueJS: For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Tests How to Write A Unit Test for Vue.js https://scotch.io/tutorials/how-to-write-a-unit-test-for-vuejs

Animista: ANIMISTA IS A PLACE WHERE YOU CAN PLAY WITH A COLLECTION OF PRE-MADE CSS ANIMATIONS, TWEAK THEM AND GET ONLY THOSE YOU WILL ACTUALLY USE. Play

Semantic UI: User Interface is the language of the web Semantic UI

Another Dashboards

gitlab-ci-monitor

Gitlab CI Monitor

License

GitLab CI Dashboard is licensed under the MIT license.

NPM

gitlab-ci-dashboard's People

Contributors

afonsocdaniel avatar dependabot[bot] avatar emilianobarbosa1 avatar emilianoeloi avatar ggarnier avatar luizbafilho avatar marcelometal avatar necosta avatar raphaelpor avatar ziaenezhad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gitlab-ci-dashboard's Issues

features, pipelines and branches

Hello,

First, i like your tools, work nicely and have an easy configuration.

I don't know if it's easy to add this two features:

  • Add a link to the success/failed pipeline
  • Possibility to add more than one branch to follow :
    "projects": [
      {
        "description": "Project",
        "namespace": "mynamespace",
        "project": "myproject",
        "branches": { "master", "release/*" }
    ]

Thanks

Cannot read property '0' of null

When loading the dashboard, I get Cannot read property '0' of null

Running against Gitlab 10.4.4 Enterprise. Gitlab is at https://git.mydomain.io (where mydomain is our internal hostname), and the whole path to the project is https://git.mydomain.io/my-namespace/my-service

Executed command: gitlab-ci-dashboard --config ~/Projects/gitlabProjectsDashboard.json

{
  "dashboard": {
    "config": {
      "gitlab": "git.mydomain.io",
      "token": "my_token",
      "apiVersion": 4
    },
    "projects": [
      {
        "description": "MyApp",
        "namespace": "my-namespace",
        "project": "my-service",
        "branch": "develop"
      }
    ]
  }
}

image

When checking the JS console, there are no errors reported. Looking at the Network tab, I can confirm that the project was retrieved:

Request

GET /api/v4/projects/my-namespace%2Fmy-service HTTP/1.1
Host: git.mydomain.io
Connection: keep-alive
Origin: http://localhost:8081
PRIVATE-TOKEN: my_token
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Accept: */*
DNT: 1
Referer: http://localhost:8081/?standalone=true
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
If-None-Match: W/"b84d8c457cfbea603a2488c5dfeebe3b"

Response

{"id":3374,"description":"","name":"my-service","name_with_namespace":"COP-FOH / my-service","path":"my-service","path_with_namespace":"my-namespace/my-service","created_at":"2014-11-05T17:09:46.000Z","default_branch":"develop","tag_list":[],"ssh_url_to_repo":"[email protected]:my-namespace/my-service.git","http_url_to_repo":"https://git.mydomain.io/my-namespace/my-service.git","web_url":"https://git.mydomain.io/my-namespace/my-service","avatar_url":null,"star_count":1,"forks_count":5,"last_activity_at":"2018-04-13T00:39:27.119Z","_links":{"self":"http://git.mydomain.io/api/v4/projects/3374","merge_requests":"http://git.mydomain.io/api/v4/projects/3374/merge_requests","repo_branches":"http://git.mydomain.io/api/v4/projects/3374/repository/branches","labels":"http://git.mydomain.io/api/v4/projects/3374/labels","events":"http://git.mydomain.io/api/v4/projects/3374/events","members":"http://git.mydomain.io/api/v4/projects/3374/members"},"archived":false,"visibility":"public","resolve_outdated_diff_discussions":null,"container_registry_enabled":null,"issues_enabled":false,"merge_requests_enabled":true,"wiki_enabled":false,"jobs_enabled":true,"snippets_enabled":false,"shared_runners_enabled":true,"lfs_enabled":true,"creator_id":95,"namespace":{"id":145,"name":"COP-FOH","path":"my-namespace","kind":"group","full_path":"my-namespace","parent_id":null},"import_status":"none","import_error":null,"runners_token":"TDnKiMQkRuML_MmpEBdc","public_jobs":true,"ci_config_path":null,"shared_with_groups":[],"only_allow_merge_if_pipeline_succeeds":false,"request_access_enabled":true,"only_allow_merge_if_all_discussions_are_resolved":false,"printing_merge_request_link_enabled":true,"permissions":{"project_access":null,"group_access":{"access_level":50,"notification_level":3}}}

Was also able to retrieve the Branch details:
Request

GET /api/v4/projects/3374/repository/commits/develop HTTP/1.1
Host: git.mydomain.io
Connection: keep-alive
Origin: http://localhost:8081
PRIVATE-TOKEN: my_token
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Accept: */*
DNT: 1
Referer: http://localhost:8081/?standalone=true
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
If-None-Match: W/"f356f57b7dda58925838c47c3cace15d"

Response

{"id":"bb42b0ca5e41f90ac8733020e8709407da81a7f8","short_id":"bb42b0ca","title":"[ci skip] prepare for next development iteration","created_at":"2018-04-13T00:40:20.000+00:00","parent_ids":["abf03ffc1bb6040319c4d48e57b6d14c11b6f9ff"],"message":"[ci skip] prepare for next development iteration\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-04-13T00:40:20.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-04-13T00:40:20.000+00:00","stats":{"additions":5,"deletions":5,"total":10},"status":"skipped","last_pipeline":{"id":542175,"sha":"bb42b0ca5e41f90ac8733020e8709407da81a7f8","ref":"develop","status":"skipped"}}

Also ok getting tags:
Request

GET /api/v4/projects/3374/repository/tags HTTP/1.1
Host: git.mydomain.io
Connection: keep-alive
Origin: http://localhost:8081
PRIVATE-TOKEN: my_token
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Accept: */*
DNT: 1
Referer: http://localhost:8081/?standalone=true
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
If-None-Match: W/"9f360cd2fb6d0ff8d4b7926152187f69"

Response

[{"name":"myserviceparent-0.1.337","message":"[ci skip] copy for tag myserviceparent-0.1.337","commit":{"id":"abf03ffc1bb6040319c4d48e57b6d14c11b6f9ff","short_id":"abf03ffc","title":"[ci skip] prepare release myserviceparent-0.1.337","created_at":"2018-04-13T00:40:18.000+00:00","parent_ids":["a4e007723eb6bd94be0ba862fd6e5f31bbea278e"],"message":"[ci skip] prepare release myserviceparent-0.1.337\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-04-13T00:40:18.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-04-13T00:40:18.000+00:00"},"release":null},{"name":"myserviceparent-541448.a4e007723eb6bd94be0ba862fd6e5f31bbea278e","message":"[ci skip] prepare release myserviceparent-541448.a4e007723eb6bd94be0ba862fd6e5f31bbea278e","commit":{"id":"a4e007723eb6bd94be0ba862fd6e5f31bbea278e","short_id":"a4e00772","title":"JIRA-448, JIRA-454, JIRA-457: some message","created_at":"2018-04-12T11:55:49.000-07:00","parent_ids":["fffc940029f3c55eb3c653a5359daedc752ebf85"],"message":"JIRA-448, JIRA-454, JIRA-457: some message\n","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-04-12T11:55:49.000-07:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-04-12T11:55:49.000-07:00"},"release":null},{"name":"myserviceparent-0.1.336","message":"[ci skip] copy for tag myserviceparent-0.1.336","commit":{"id":"8f93151c68c17068b318830b571421777ce2fc73","short_id":"8f93151c","title":"[ci skip] prepare release myserviceparent-0.1.336","created_at":"2018-04-04T19:30:20.000+00:00","parent_ids":["a4b41319f682fb1615c48e42e49776868251a325"],"message":"[ci skip] prepare release myserviceparent-0.1.336\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-04-04T19:30:20.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-04-04T19:30:20.000+00:00"},"release":null},{"name":"myserviceparent-526508.a4b41319f682fb1615c48e42e49776868251a325","message":"[ci skip] prepare release myserviceparent-526508.a4b41319f682fb1615c48e42e49776868251a325","commit":{"id":"a4b41319f682fb1615c48e42e49776868251a325","short_id":"a4b41319","title":"Merge branch 'feature/JIRA-525' into 'develop'","created_at":"2018-04-04T18:41:43.000+00:00","parent_ids":["11d4ea0dffb6999308dc466c50800e4dd920a3d5","910f6015c8f7562be1aa8ae6b1c713ce0ad8bde4"],"message":"some message\n\nSee merge request my-namespace/myserviceservice!482","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-04-04T18:41:43.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-04-04T18:41:43.000+00:00"},"release":null},{"name":"myserviceparent-0.1.335","message":"[ci skip] copy for tag myserviceparent-0.1.335","commit":{"id":"b3d18baeaf847f772f313fac9c5cfbd2d1437c44","short_id":"b3d18bae","title":"[ci skip] prepare release myserviceparent-0.1.335","created_at":"2018-03-30T23:29:29.000+00:00","parent_ids":["c2c5deb034967ce68806dcb346e3cc78c6afb6e3"],"message":"[ci skip] prepare release myserviceparent-0.1.335\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-30T23:29:29.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-30T23:29:29.000+00:00"},"release":null},{"name":"myserviceparent-518836.c2c5deb034967ce68806dcb346e3cc78c6afb6e3","message":"[ci skip] prepare release myserviceparent-518836.c2c5deb034967ce68806dcb346e3cc78c6afb6e3","commit":{"id":"c2c5deb034967ce68806dcb346e3cc78c6afb6e3","short_id":"c2c5deb0","title":"Merge branch 'JIRA-497' into 'develop'","created_at":"2018-03-30T22:43:15.000+00:00","parent_ids":["df47fdf12e0533dd9658a17b282d20616b2c7db8","0acf76f76306a53d783cd1862c52cdb0bf1840d9"],"message":"Merge branch 'JIRA-497' into 'develop'\n\nJIRA-497\n\nSee merge request my-namespace/myserviceservice!481","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-30T22:43:15.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-30T22:43:15.000+00:00"},"release":null},{"name":"myserviceparent-0.1.334","message":"[ci skip] copy for tag myserviceparent-0.1.334","commit":{"id":"fcff36029fb78757c5a4f7859ecd97231bcf8bc1","short_id":"fcff3602","title":"[ci skip] prepare release myserviceparent-0.1.334","created_at":"2018-03-30T22:28:33.000+00:00","parent_ids":["fe4107cd74a9de756a6823543449b117b1ac55c5"],"message":"[ci skip] prepare release myserviceparent-0.1.334\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-30T22:28:33.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-30T22:28:33.000+00:00"},"release":null},{"name":"myserviceparent-518377.fe4107cd74a9de756a6823543449b117b1ac55c5","message":"[ci skip] prepare release myserviceparent-518377.fe4107cd74a9de756a6823543449b117b1ac55c5","commit":{"id":"fe4107cd74a9de756a6823543449b117b1ac55c5","short_id":"fe4107cd","title":"Merge branch 'feature/JIRA-432' into 'develop'","created_at":"2018-03-29T01:51:15.000+00:00","parent_ids":["a605b4d3077c5719bd6d2afaf7b18bb253e4f1d6","e5d4c8fabc17410d81a4658904636d4384c51070"],"message":"Merge branch 'feature/JIRA-432' into 'develop'\n\nJIRA-432: some message\n\nSee merge request my-namespace/myserviceservice!480","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-29T01:51:15.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-29T01:51:15.000+00:00"},"release":null},{"name":"myserviceparent-0.1.333","message":"[ci skip] copy for tag myserviceparent-0.1.333","commit":{"id":"6b168d6d838e4685d2ab8ff11050a10a04f82184","short_id":"6b168d6d","title":"[ci skip] prepare release myserviceparent-0.1.333","created_at":"2018-03-22T22:26:16.000+00:00","parent_ids":["3dd56516f20aae3daf17394caaffaa5b88f51b91"],"message":"[ci skip] prepare release myserviceparent-0.1.333\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-22T22:26:16.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-22T22:26:16.000+00:00"},"release":null},{"name":"myserviceparent-503924.3dd56516f20aae3daf17394caaffaa5b88f51b91","message":"[ci skip] prepare release myserviceparent-503924.3dd56516f20aae3daf17394caaffaa5b88f51b91","commit":{"id":"3dd56516f20aae3daf17394caaffaa5b88f51b91","short_id":"3dd56516","title":"JIRA-309/JIRA-412: some message","created_at":"2018-03-22T14:42:21.000-07:00","parent_ids":["8b015aef6c88ff1c4fd0430cd060b2211a1ac410"],"message":"JIRA-309/JIRA-412: some messge\n","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-22T14:42:21.000-07:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-22T14:42:21.000-07:00"},"release":null},{"name":"myserviceparent-0.1.332","message":"[ci skip] copy for tag myserviceparent-0.1.332","commit":{"id":"1b84fc45fcc36e916b125cdfee3a0a3ff3c2b9c3","short_id":"1b84fc45","title":"[ci skip] prepare release myserviceparent-0.1.332","created_at":"2018-03-22T02:44:08.000+00:00","parent_ids":["06b98d5c40ea141a2230ad800c521dcdac4e08e0"],"message":"[ci skip] prepare release myserviceparent-0.1.332\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-22T02:44:08.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-22T02:44:08.000+00:00"},"release":null},{"name":"myserviceparent-501953.06b98d5c40ea141a2230ad800c521dcdac4e08e0","message":"[ci skip] prepare release myserviceparent-501953.06b98d5c40ea141a2230ad800c521dcdac4e08e0","commit":{"id":"06b98d5c40ea141a2230ad800c521dcdac4e08e0","short_id":"06b98d5c","title":"Merge branch 'JIRA-412' into 'develop'","created_at":"2018-03-22T02:01:48.000+00:00","parent_ids":["ea4124074846534caaa3e7ed55b6e7302b2d7604","16f7e0dc6b2044f0356c35ce01033ea6ef7f6cb4"],"message":"Merge branch 'JIRA-412' into 'develop'\n\nJIRA-412: some message\n\nSee merge request my-namespace/myserviceservice!478","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-22T02:01:48.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-22T02:01:48.000+00:00"},"release":null},{"name":"myserviceparent-0.1.331","message":"[ci skip] copy for tag myserviceparent-0.1.331","commit":{"id":"6e9b222dddbcd2c27b7f03f38380397c6793876d","short_id":"6e9b222d","title":"[ci skip] prepare release myserviceparent-0.1.331","created_at":"2018-03-22T01:00:16.000+00:00","parent_ids":["ab0068e22dbdedabf4baadb6a600db0b0a582e6d"],"message":"[ci skip] prepare release myserviceparent-0.1.331\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-22T01:00:16.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-22T01:00:16.000+00:00"},"release":null},{"name":"myserviceparent-501848.ab0068e22dbdedabf4baadb6a600db0b0a582e6d","message":"[ci skip] prepare release myserviceparent-501848.ab0068e22dbdedabf4baadb6a600db0b0a582e6d","commit":{"id":"ab0068e22dbdedabf4baadb6a600db0b0a582e6d","short_id":"ab0068e2","title":"Merge branch 'foo' into 'develop'","created_at":"2018-03-22T00:12:57.000+00:00","parent_ids":["9c67a1d709650e26202f89aaf5760beedff96573","efefbc5db078f82f84fa3068dd1ea97492741b19"],"message":"Merge branch 'foo-bar' into 'develop'\n\nJIRA-521: some message\n\nSee merge request my-namespace/myserviceservice!476","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-22T00:12:57.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-22T00:12:57.000+00:00"},"release":null},{"name":"myserviceparent-0.1.330","message":"[ci skip] copy for tag myserviceparent-0.1.330","commit":{"id":"9836f2485deb86e1af2b72f83e06dc9347395a24","short_id":"9836f248","title":"[ci skip] prepare release myserviceparent-0.1.330","created_at":"2018-03-21T09:26:48.000+00:00","parent_ids":["08b3ec8ef6404c610dc991467601c8a2dd7d4438"],"message":"[ci skip] prepare release myserviceparent-0.1.330\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-21T09:26:48.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-21T09:26:48.000+00:00"},"release":null},{"name":"myserviceparent-499624.08b3ec8ef6404c610dc991467601c8a2dd7d4438","message":"[ci skip] prepare release myserviceparent-499624.08b3ec8ef6404c610dc991467601c8a2dd7d4438","commit":{"id":"08b3ec8ef6404c610dc991467601c8a2dd7d4438","short_id":"08b3ec8e","title":"Merge branch 'feature/JIRA-374' into 'develop'","created_at":"2018-03-21T08:41:22.000+00:00","parent_ids":["4e5f6fbea0070297342969dc45fea59c425424eb","69d792c16834a4b387f1ab096a690278c8e0af08"],"message":"Merge branch 'feature/JIRA-374' into 'develop'\n\nJIRA-374 some message\n\nSee merge request my-namespace/myserviceservice!477","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-21T08:41:22.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-21T08:41:22.000+00:00"},"release":null},{"name":"myserviceparent-0.1.329","message":"[ci skip] copy for tag myserviceparent-0.1.329","commit":{"id":"c175ef799522eac582104b989ce7464067ca6aac","short_id":"c175ef79","title":"[ci skip] prepare release myserviceparent-0.1.329","created_at":"2018-03-19T20:33:25.000+00:00","parent_ids":["26729fb26e0b5a500e54d1f077eca9d287072583"],"message":"[ci skip] prepare release myserviceparent-0.1.329\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-19T20:33:25.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-19T20:33:25.000+00:00"},"release":null},{"name":"myserviceparent-496128.26729fb26e0b5a500e54d1f077eca9d287072583","message":"[ci skip] prepare release myserviceparent-496128.26729fb26e0b5a500e54d1f077eca9d287072583","commit":{"id":"26729fb26e0b5a500e54d1f077eca9d287072583","short_id":"26729fb2","title":"Merge branch 'feature/JIRA-390' into 'develop'","created_at":"2018-03-19T19:46:53.000+00:00","parent_ids":["b300b2d8df62468560f3f09d0f7c2bfeb258e7a5","7372d0b248c6da184c4058efb332420686fa03b8"],"message":"Merge branch 'feature/JIRA-390' into 'develop'\n\nJIRA-390: some message\n\nSee merge request my-namespace/myserviceservice!475","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-19T19:46:53.000+00:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-19T19:46:53.000+00:00"},"release":null},{"name":"myserviceparent-0.1.328","message":"[ci skip] copy for tag myserviceparent-0.1.328","commit":{"id":"dff1ac34b02b18dd6812e8d10cb04e6d65a0a127","short_id":"dff1ac34","title":"[ci skip] prepare release myserviceparent-0.1.328","created_at":"2018-03-16T12:36:11.000+00:00","parent_ids":["8ba2a7119add2dfe4243b18b0ae8b296985b91b4"],"message":"[ci skip] prepare release myserviceparent-0.1.328\n","author_name":"gitlab-ci-runner","author_email":"[email protected]","authored_date":"2018-03-16T12:36:11.000+00:00","committer_name":"gitlab-ci-runner","committer_email":"[email protected]","committed_date":"2018-03-16T12:36:11.000+00:00"},"release":null},{"name":"myserviceparent-491578.8ba2a7119add2dfe4243b18b0ae8b296985b91b4","message":"[ci skip] prepare release myserviceparent-491578.8ba2a7119add2dfe4243b18b0ae8b296985b91b4","commit":{"id":"8ba2a7119add2dfe4243b18b0ae8b296985b91b4","short_id":"8ba2a711","title":"JIRA-343 some message","created_at":"2018-03-16T09:57:21.000+02:00","parent_ids":["d26ff1b509f4ee8c5b827b64d69d9d2e2e2b99d2"],"message":"JIRA-343 some message\n","author_name":"Foo Bar","author_email":"[email protected]","authored_date":"2018-03-16T09:57:21.000+02:00","committer_name":"Foo Bar","committer_email":"[email protected]","committed_date":"2018-03-16T09:57:21.000+02:00"},"release":null}]

can we get the dasboard to display all the projects within a namespace?

[
  {
    "description": "React Native render for draft.js model",
    "namespace": "globocom",
    "project": "react-native-draftjs-render",
    "branch": "develop"
  }
  (...)
]

I am asked to enter every project name and branch values. instead can i get all the builds by providing just namespace value ?

Cannot display more than 7 projects

Running with version 6.4.4.

When I use a configuration that has more than 7 projects, only 7 projects (seemingly at random) are displayed. We can see all the projects being loaded (as the failure and success are changing) but upon reaching 7, the counter start resetting and only the 7 last projects are displayed regardless of the hideSuccessCards flag (nothing is displayed even if I have failures).

The count is always seven as well ( 7 success or 6 success, 1 failure, etc.)

Is there a config to limit the number of projects displayed?
Can you point me in the general code vicinity where the count of projects displayed is handled?

null is not an object (evaluating 's().exec(e)[0]')

Hi, i have a new problem, I am checking with v6.4.3-alpha.2 and v6.4.3-alpha.1.

I am using differents browser (Safari, Chrome and Firefox).

Something went wrong. Make sure the configuration is ok and your Gitlab is up and running. Details: null is not an object (evaluating 's().exec(e)[0]')

Regards,

Cannot find property 'id' of undefined when run as Standalone using --config parameter

As a user,

When I am running below command
gitlab-ci-dashbaord --config ./config.json

It opens a browser window and shows the error "Cannot find property 'id' of undefined".
After debugging I found that the issue is happening because of line: 423 in main.js file where it try to fetch the lastPipelineId and fails.

Due to this, the dashboard does not show any project status.

However running application as
gitlab-ci-dashboard --gitlab --token --projectFile
works perfectly fine.

Could someone please look into this.

Please let me know if you need more details.

The params endpoint leaks the API key.

The /params endpoint returns the API key in plain text. If the application is hosted publicly, this could cause the token to be leaked to unknown third parties.

I'll be adding a short documentation addendum clarifying this, so that users are aware that they should only host the application in a private / local network that's not public.

help with config.json

Im looking for a bit of guidance for writing a config.json

Im currently receiving the following error when navigating to the local web page.

nvidia@tegra-ubuntu:~/gitlab-dash/node_modules/gitlab-ci-dashboard/bin$ ./gitlab-ci-dashboard --config ../config/dashboard_config.json The dashboard is now available at http://localhost:8081/?standalone=true (node:20910) UnhandledPromiseRejectionWarning: Error: Exited with code 3 at ChildProcess.cp.once.code (/home/nvidia/gitlab-dash/node_modules/opn/index.js:84:13) at Object.onceWrapper (events.js:273:13) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:961:16) at Socket.stream.socket.on (internal/child_process.js:380:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:599:12) (node:20910) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:20910) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

My config looks something like this:

{
"dashboard": {
    "config": {
      "gitlab": "gitlab.com",
      "token": "blablabla",
      "gitlabciProtocol": "ssh", # i also tried https
      "hideSuccessCards": false,
      "hideVersion": false,
      "interval": 60,
      "apiVersion": 4
    },
    "projects": [
      {
        "description": "React Native render for draft.js model",
        "namespace": "myproject_group", #could you clarify what is included in the namespace
        "project": "repo_name", #is this supposed be the project number id?
        "branch": "master"
      }
    ]
  }
}

Thanks

Display Coverage

It would be really nice if this was able to display the code test coverage of a project in the dashboard, this is a feature supported by gitlab, so maybe its not too much trouble to add?

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.