最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

bash - How to retrieve and modify the Project Name from SonarQube's DevOps Platform Integration via API - Stack Overflow

programmeradmin1浏览0评论

I'm working with SonarQube and Azure DevOps integration, and I need to retrieve the Project Name value that appears in the DevOps Platform Integration section for a given project.

I would like to achieve this using the SonarQube API, so I can later modify this value in bulk for multiple projects. However, after reviewing the API documentation, I couldn't find a clear way to get or update this specific field.

So far, I have tried using the following API call to retrieve project settings:

curl -s -u "$TOKEN:" "$SONAR_URL/api/settings/values?component=$PROJECT_KEY" | jq -r '.settings[] | select(.key == "sonar.projectName") | .value'

But this doesn't return the Project Name from the DevOps integration settings.

Is there a specific API endpoint that allows retrieving and updating this field? Or is there another approach to manage this setting programmatically?

Any help or guidance would be greatly appreciated!

Additional Context:

Azure DevOps is being used as the ALM

The goal is to automate the modification of this field for multiple projects

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论