Giter Club home page Giter Club logo

Comments (3)

dosubot avatar dosubot commented on June 24, 2024 2

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.

klesh avatar klesh commented on June 24, 2024

Lovely

from incubator-devlake.

klesh avatar klesh commented on June 24, 2024

I like the report-and-fix vibe here. 👍

from incubator-devlake.

Related Issues (20)

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.