Sources
Sources in Cibyl are responsible for performing the queries and getting the data the user is interested in. A source can be anything: a CI system, repository, database, etc. Cibyl supports the following sources out-of-the-box:
Configuring Sources
The following is an example of Jenkins source configuration:
environments:
example_environment:
jenkins_system:
system_type: jenkins
sources:
jenkins_source:
driver: jenkins
username: some_username
token: some_token
url: https://jenkins.example.com
See configuration to understand how to properly configure Cibyl for CLI usage.
Source Interface
Each source can support one or more of the arguments specified by the different models of Cibyl. The only constraint regarding sources is that each source must inherit from the Source class.
Arguments Matrix
Argument / Source |
Description |
Jenkins |
Zuul |
ES |
JJB |
Zuul.d |
---|---|---|---|---|---|---|
–jobs |
Jobs names or pattern
Default: all jobs
|
☑️ |
☑️ |
☑️ |
☑️ |
🔲 |
–builds |
Build numbers
Default: all builds
|
☑️ |
☑️ |
☑️ |
❌ |
❌ |
–last-build |
The last build of a job
|
☑️ |
☑️ |
☑️ |
❌ |
❌ |
–build-status |
Build status (default: all)
failure, success,
abandoned, unstable
|
☑️ |
☑️ |
☑️ |
❌ |
❌ |
–tests |
Test names or pattern
Default: all tests
|
☑️ |
🔲 |
☑️ |
❌ |
❌ |
–test-result |
Test result (default: all)
success, failed, skipped
|
☑️ |
🔲 |
☑️ |
❌ |
❌ |
–test-duration |
Test duration (in seconds,
default: all)
(Can be also range: “>=3”)
|
☑️ |
🔲 |
🔲 |
❌ |
❌ |