VERSION:0.2.2
Published 23 days ago by @cto.ai
$ ops run @cto.ai/
sonarqube

SonarQube

An Ops port of the SonarScanner CLI tool.

Requirements

To run this or any other Op, install the Ops Platform.

Find information about how to run and build Ops via the Ops Platform Documentation.

This Op also requires:

  • A SonarQube server
    • Anyone and sonar-users group should have all permissions removed
    • Default visibility of new projects should be set to private
      • Administration Tab -> Projects -> Managements -> Default visibility of new projects
    • Create a user for the ops, with permissions Administer System, Execute Analysis, and Create Projects
      • Security -> Global Permission -> update checkboxes
    • Get the token for that user and add it to secrets store via ops secrets:set. Key should ideally be sonarToken
    • Get the server address ready to input when it prompts
  • A publicly accessible Git repository, with HTTP(S) protocol enabled
    • Currently this op does not work with SSH protocol

Usage

To initiate the interactive SonarQube CLI prompt run:

ops run cto.ai/sonarqube

Local Development / Running from Source

1. Clone the repo:

git clone <git url>

2. Navigate into the directory and install dependencies:

cd sonarqube && go get ./...

3. Run the Op from your current working directory with:

ops run .

Debugging Issues

Use the DEBUG flag in the terminal to see verbose Op output like so:

DEBUG=sonarqube:* ops run sonarqube

When submitting issues or requesting help, be sure to also include the version information. To get your ops version run:

ops -v

Resources

SonarQube Docs

Contributing

See the Contributing Docs for more information.

Contributors

Mario Mejia
Mario Mejia

Calvin Holloway
Calvin Holloway

aschereT's face here
Vincent Tan

Min Sohng
Min Sohng

LICENSE

MIT