Comments (3)
Hello @sstojak1! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's work together to resolve the issue you've encountered.
To ensure that the hudson.maven.MavenModuleSet
Jenkins project type is not incorrectly categorized as a group instead of a scope in DevLake version v1.0.0-beta11, you need to correctly configure the scope in the scope_config_api.go
file.
Here is an example of how you can create a scope configuration for Jenkins:
func CreateScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
return dsHelper.ScopeConfigApi.Post(input)
}
Ensure that the scopeConfig
parameter in the CreateScopeConfig
function correctly identifies hudson.maven.MavenModuleSet
as a scope. This involves setting the appropriate fields in the models.JenkinsScopeConfig
structure.
Example of defining the JenkinsScopeConfig
model:
package models
type JenkinsScopeConfig struct {
ID int `json:"id"`
ConnectionId int `json:"connectionId"`
ScopeType string `json:"scopeType"` // Ensure this field correctly identifies the scope type
ScopeName string `json:"scopeName"`
// Add other necessary fields
}
Ensure the ScopeType
field correctly identifies hudson.maven.MavenModuleSet
as a scope. This way, when you create or update a scope configuration, it will be correctly categorized.
Example usage:
{
"connectionId": 1,
"scopeType": "hudson.maven.MavenModuleSet",
"scopeName": "My Maven Project"
}
Additionally, according to the DevLake domain layer schema, Jenkins jobs are categorized under the CI/CD domain as cicd_scopes
. Ensure that hudson.maven.MavenModuleSet
is correctly mapped to a cicd_scope
in the domain layer schema:
#### cicd_scopes
The entity to filter or group 'cicd_pipelines'.
- For Jenkins: a Jenkins job is converted to a cicd_scope
By following these steps, you can ensure that hudson.maven.MavenModuleSet
is correctly categorized as a scope in DevLake [1][2].
To continue talking to Dosu, mention @dosu.
from incubator-devlake.
Lovely
from incubator-devlake.
I like the report-and-fix vibe here. 👍
from incubator-devlake.
Related Issues (20)
- [Refactor][DORA] Refactor CalculateChangeLeadTimeMeta subtask HOT 2
- [Feature][PagerDuty] Change Incident Times HOT 5
- [Bug][PagerDuty] not enough info for Pagerduty execution (400) HOT 3
- [Bug][Module Name] AxiosError: Request failed with status code 500 HOT 2
- [Bug][CircleCI] CircleCI regex is not working to collect data HOT 3
- [Feature][StarRocks] support starrocks replication num
- [Feature][CustomizePlugin] Data extraction 'rawDataParams' does not support wild cards
- [Bug][GitLab] account ID is not normalized HOT 1
- [Bug][SonarQube] subtask convertIssueCodeBlocks ended unexpectedly HOT 1
- [Bug][Sonarqube] data too long HOT 5
- [Bug][opsgenie] Testing API Key not working HOT 2
- [Bug][API] GET /projects exposes GitLab token in the gitextractor plugin HOT 1
- [Bug][Jenkins] ValidateTaskOptions not working as expected HOT 2
- [Bug][Bitbucket Server] Activities collector fails when PR is corrupt HOT 7
- [Question][REST API] I can't find a way to attach Connection to DevLake Project. HOT 14
- [Bug][gitextractor] Unable to disable CollectDeployment HOT 1
- [Bug][Pager Duty] Not able to delete the Pager Duty connection HOT 1
- [Feature][Kanbanize] Add kanbanize support HOT 1
- [Feature][Sentry]New Data Sources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-devlake.