{"id":48166056,"url":"https://github.com/henryd24/azdevops-sonarcloud-create-project","last_synced_at":"2026-04-04T17:29:52.130Z","repository":{"id":161917209,"uuid":"636532912","full_name":"henryd24/azdevops-sonarcloud-create-project","owner":"henryd24","description":"Azure devops extension, which allows to verify if a project exists in sonarcloud and if it does not exist, to create it.","archived":false,"fork":false,"pushed_at":"2024-10-29T01:00:46.000Z","size":310,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T01:34:03.274Z","etag":null,"topics":["azuredevops-extension","azuredevops-task","azurepipelines","sonarcloud"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henryd24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-05-05T04:08:39.000Z","updated_at":"2024-10-29T01:00:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa01213c-37ca-4512-8718-2a7e3fd9dedf","html_url":"https://github.com/henryd24/azdevops-sonarcloud-create-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/henryd24/azdevops-sonarcloud-create-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryd24%2Fazdevops-sonarcloud-create-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryd24%2Fazdevops-sonarcloud-create-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryd24%2Fazdevops-sonarcloud-create-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryd24%2Fazdevops-sonarcloud-create-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henryd24","download_url":"https://codeload.github.com/henryd24/azdevops-sonarcloud-create-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryd24%2Fazdevops-sonarcloud-create-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31407644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azuredevops-extension","azuredevops-task","azurepipelines","sonarcloud"],"created_at":"2026-04-04T17:29:48.954Z","updated_at":"2026-04-04T17:29:52.117Z","avatar_url":"https://github.com/henryd24.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SonarCloud Project Creator \u0026 Checker\n\nThis Azure DevOps extension automates the verification and creation of projects in **SonarCloud**. It ensures your CI/CD pipelines run smoothly by pre-configuring projects, Quality Gates, and New Code definitions before the analysis begins. This extension is designed to help with [SonarCloud](https://sonarcloud.io/) by providing a helper task. It's not an official SonarSource extension.\n\n## 🚀 Why use this task?\n\nStandard SonarCloud analysis often relies on projects being manually created or using default settings. This task provides:\n\n  * **Auto-Provisioning:** Creates the project if it doesn't exist.\n  * **Standardization:** Automatically applies the correct Quality Gate and \"New Code\" definition.\n  * **Smart Verification:** Can be used just to check if a project exists without creating it.\n\n## 🛠️ Recommended Usage\n\nPlace this task **before** the `Prepare Analysis Configuration` task from SonarSource. This ensures the environment is perfectly configured when the scanner starts.\n\n```yaml\n- task: sonarcloud-create-project@1\n  inputs:\n    SonarCloud: 'MySonarConnection'\n    sonarOrganization: 'my-org-key'\n    serviceKey: 'my-project-key'\n    serviceName: 'My Project Name'\n    createProject: 'true'\n```\n\n-----\n\n## ⚙️ Input Configuration\n\n### Core Settings\n\n| Input Label | Parameter Name | Required | Description |\n| :--- | :--- | :---: | :--- |\n| **SonarCloud Service Connection** | `SonarCloud` | Yes | The Azure DevOps Service Connection for SonarCloud. |\n| **Organization** | `sonarOrganization` | Yes | Select or enter the SonarCloud organization key. |\n| **Project keyname** | `serviceKey` | Yes | Unique identifier for the project (e.g., `front-angular`). |\n| **Project name** | `serviceName` | No | Human-readable name displayed in SonarCloud. |\n| **Create project** | `createProject` | Yes | `Yes` to create if missing; `No` to only check existence. |\n\n### Project Customization (Visible when Create Project = Yes)\n\n| Input Label | Parameter Name | Required | Description |\n| :--- | :--- | :---: | :--- |\n| **Main Branch Name** | `mainBranch` | No | Default branch name (e.g., `trunk`, `release`). |\n| **Visibility** | `visibility` | Yes | Project visibility: `private` or `public`. |\n| **Tags** | `tags` | No | Comma-separated tags (e.g., `dev,node,aws`). |\n| **Long-lived branches (regex)** | `long_live_branches` | No | Regex for long-lived branches (e.g., `(master\\|qa)`). |\n| **Select the quality gate** | `sonarQualityGate` | No | Select the Quality Gate to assign to the project. |\n\n### New Code Definition (Advanced)\n\nFound under the **Code Definition Options** group. Visible when `createProject` is enabled.\n\n| Input Label | Parameter Name | Type | Description |\n| :--- | :--- | :---: | :--- |\n| **Configure New Code Definition** | `enableNewCodeDefinition` | boolean | Enables the \"New Code\" configuration group. |\n| **New Code Definition Type** | `newCodeDefinitionType` | radio | `previous_version`, `days`, `date`, or `version`. |\n| **New Code Definition Value** | `newCodeDefinitionValue` | string | Required if type is NOT `previous_version`. |\n\n-----\n\n## 🖼️ Preview\n### General Setup\n![Task View](https://i.imgur.com/6cEiX1l.png)\n### Detailed Inputs\n![Inputs](https://i.imgur.com/bwzcfpc.png)\n\n-----\n\n## 💻 Technical Requirements\n\n  * **Runtime:** Compatible with agents running **Node 20** or **Node 24**.\n  * **Permissions:** The token used in the Service Connection must have **\"Administer Projects\"** permissions in SonarCloud.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryd24%2Fazdevops-sonarcloud-create-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryd24%2Fazdevops-sonarcloud-create-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryd24%2Fazdevops-sonarcloud-create-project/lists"}