Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect all projects and ref? #1

Closed
jeff-cook opened this issue Nov 29, 2018 · 5 comments
Closed

Collect all projects and ref? #1

jeff-cook opened this issue Nov 29, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@jeff-cook
Copy link
Contributor

This is a great project.

I was wondering if there was a way to get all projects and ref? As the list of projects grows having everything monitored would be great. Instead of having to build a script to build the config file?

To handle limiting the scope we could make sure the token user only has access to the right projects.

Thank you for your work on this.

@snahelou
Copy link

snahelou commented Feb 1, 2019

Hello

I started to integrate wildcard support. It's quick&dirty, but it should works.
https://github.com/snahelou/gitlab-ci-pipelines-exporter

BR

EDIT: It's a little bit more complicated in fact... Counter is not working cause I start a routine for each run... :(

@sakojpa
Copy link
Contributor

sakojpa commented Feb 4, 2019

Hi!
nice. but it fetch only 20 projects with wildcard and all, other projects can be fetch by config.yml ?

@mvisonneau mvisonneau added the enhancement New feature or request label Feb 11, 2019
@mvisonneau
Copy link
Owner

👋 that would be really cool to have indeed. Not sure if there is an easy/efficient way to list the projects that the token has access onto. It could get easily expensive to have to loop in order to determine it. If someone has a solution I'd be more than happy to get it merged.

@sakojpa
Copy link
Contributor

sakojpa commented Feb 12, 2019

I got an error, I can not understand what it is

2019/02/12 06:48:56 -> Starting exporter
2019/02/12 06:48:56 -> Polling *** every 30s
2019/02/12 06:48:56 -> 10 project(s) configured
2019/02/12 06:48:56 --> Polling ID: 286 | ***
...
2019/02/12 06:48:56 --> Polling ID: 261 | ***
panic: runtime error: index out of range

goroutine 16 [running]:
main.main.func1(0xc42009b200, 0xc4200165c0, 0xc420012e60, 0x11, 0xc420014cc0, 0x6)
/go/src/github.com/mvisonneau/gitlab-ci-pipelines-exporter/main.go:127 +0xafb
created by main.main
/go/src/github.com/mvisonneau/gitlab-ci-pipelines-exporter/main.go:108 +0x316

@mvisonneau mvisonneau mentioned this issue Feb 12, 2019
@mvisonneau
Copy link
Owner

I just added this feature with 2713ebd !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants