Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: sonarqube v2 plugin#6674

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rupinSec wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromsonar-plugin-v2
Open

chore: sonarqube v2 plugin#6674

rupinSec wants to merge2 commits intomainfromsonar-plugin-v2

Conversation

@rupinSec
Copy link
Contributor

@rupinSecrupinSec commentedJun 17, 2025
edited by bito-code-reviewbot
Loading

Fixeshttps://github.com/devtron-labs/devops-sprint/issues/1786
Sonarqube v2 plugin with multi branch support

Summary by Bito

This pull request introduces a new Sonarqube plugin version with multi-branch scanning capabilities. It includes SQL migration scripts for upgrading and downgrading the plugin, adds new plugin entries, updates metadata, and configures environment-dependent settings to streamline deployment and management of Sonarqube v2.

@sonarqubecloud
Copy link

@Shivam-nagar23
Copy link
Member

/review

@bito-code-review
Copy link

Changelist byBito

This pull request implements the following key changes.

Key ChangeFiles Impacted
New Feature - New Sonarqube Plugin Enhancements

33703800_sonarqube_plugin_v2.down.sql - Removes legacy Sonarqube plugin records and resets metadata to prepare for the new plugin version.

33703800_sonarqube_plugin_v2.up.sql - Introduces new SQL migration scripts that add the Sonarqube v2 plugin with multi branch support, updating multiple tables including plugin metadata, pipeline scripts, and step variables.

Copy link

@bito-code-reviewbito-code-reviewbot left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Code Review Agent Run #cdffed

Actionable Suggestions - 2
  • scripts/sql/33703800_sonarqube_plugin_v2.up.sql -2
Filtered by Review Rules

Bito filtered these suggestions based on rules created automatically for your feedback.Manage rules.

  • scripts/sql/33703800_sonarqube_plugin_v2.down.sql -1
    • Incorrect rollback logic for plugin metadata ·Line 6-6
  • scripts/sql/33703800_sonarqube_plugin_v2.up.sql -1
Review Details
  • Files reviewed -2 · Commit Range:10bb708..f9b84ee
    • scripts/sql/33703800_sonarqube_plugin_v2.down.sql
    • scripts/sql/33703800_sonarqube_plugin_v2.up.sql
  • Files skipped -0
    • Tools
      • Whispers (Secret Scanner) - ✔︎ Successful
      • Detect-secrets (Secret Scanner) - ✔︎ Successful

    Bito Usage Guide

    Commands

    Type the following command in the pull request comment and save the comment.

    • /review - Manually triggers a full AI review.

    • /pause - Pauses automatic reviews on this pull request.

    • /resume - Resumes automatic reviews.

    • /resolve - Marks all Bito-posted review comments as resolved.

    • /abort - Cancels all in-progress reviews.

    Refer to thedocumentation for additional commands.

    Configuration

    This repository usesDefault Agent You can customize the agent settingshere or contact your Bito workspace admin atshivam@devtron.ai.

    Documentation & Help

    AI Code Review powered byBito Logo

    Comment on lines +70 to +71
    repo_name=$(echo "$data" | sed -n ''1p'')
    branch_name=$(echo "$data" | sed -n ''3p'')

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others.Learn more.

    Incorrect sed syntax causes parsing error

    Incorrect sed syntax:sed -n ''1p'' uses double quotes around single quotes which will cause parsing errors. Fix by using proper single quotes:sed -n '1p'.

    Code suggestion
    Check the AI-generated fix before applying
    Suggested change
    repo_name=$(echo"$data" | sed-n''1p'')
    branch_name=$(echo"$data" | sed-n''3p'')
    repo_name=$(echo"$data" | sed-n'1p')
    branch_name=$(echo"$data" | sed-n'3p')

    Code Review Run#cdffed


    Should Bito avoid suggestions like this for future reviews? (Manage Rules)

    • Yes, avoid them

    then
    echo "********* SonarQube Policy Violated *********"
    echo "********* Exiting Build *********"
    exit

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others.Learn more.

    Missing exit code indicates wrong status

    Missing exit code:exit without a code defaults to 0 (success) when policy check fails. This will incorrectly indicate success when the pipeline should fail. Addexit 1 to properly indicate failure.

    Code suggestion
    Check the AI-generated fix before applying
    Suggested change
    exit
    exit1

    Code Review Run#cdffed


    Should Bito avoid suggestions like this for future reviews? (Manage Rules)

    • Yes, avoid them

    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    Reviewers

    @prakarsh-dtprakarsh-dtAwaiting requested review from prakarsh-dtprakarsh-dt is a code owner

    @vikramdevtronvikramdevtronAwaiting requested review from vikramdevtronvikramdevtron is a code owner

    @nishant-dnishant-dAwaiting requested review from nishant-d

    @vivek-devtronvivek-devtronAwaiting requested review from vivek-devtronvivek-devtron is a code owner

    1 more reviewer

    @bito-code-reviewbito-code-review[bot]bito-code-review[bot] requested changes

    Reviewers whose approvals may not affect merge requirements

    At least 1 approving review is required to merge this pull request.

    Assignees

    No one assigned

    Projects

    None yet

    Milestone

    No milestone

    Development

    Successfully merging this pull request may close these issues.

    3 participants

    @rupinSec@Shivam-nagar23

    [8]ページ先頭

    ©2009-2025 Movatter.jp