Update Doc: Integrate SonarQube
Signed-off-by: Felixnoo <felixliu@yunify.com>
|
|
@ -190,7 +190,7 @@ To integrate SonarQube into your pipeline, you must install SonarQube Server fir
|
|||
http://192.168.0.4:30180
|
||||
```
|
||||
|
||||
3. Access Jenkins with the address `http://Public IP:30180`. When KubeSphere is installed, the Jenkins dashboard is also installed by default. Besides, Jenkins is configured with KubeSphere LDAP, which means you can log in to Jenkins with KubeSphere accounts (e.g. `admin/P@88w0rd`) directly. For more information about configuring Jenkins, see [Jenkins System Settings](../../../devops-user-guide/how-to-use/jenkins-setting/).
|
||||
3. Access Jenkins with the address `http://{$Public IP}:30180`. When KubeSphere is installed, the Jenkins dashboard is also installed by default. Besides, Jenkins is configured with KubeSphere LDAP, which means you can log in to Jenkins with KubeSphere accounts (e.g. `admin/P@88w0rd`) directly. For more information about configuring Jenkins, see [Jenkins System Settings](../../../devops-user-guide/how-to-use/jenkins-setting/).
|
||||
|
||||

|
||||
|
||||
|
|
@ -202,19 +202,27 @@ To integrate SonarQube into your pipeline, you must install SonarQube Server fir
|
|||
|
||||
4. Click **Manage Jenkins** on the left.
|
||||
|
||||

|
||||

|
||||
|
||||
5. Scroll down to **Configure System** and click it.
|
||||
|
||||

|
||||

|
||||
|
||||
6. Navigate to **SonarQube servers** and click **Add SonarQube**.
|
||||
|
||||

|
||||

|
||||
|
||||
7. Input **Name**, **Server URL** (`http://Node IP:port`) and **Server authentication token** (the SonarQube admin token). Click **Apply** to finish.
|
||||
7. Enter **Name** and **Server URL** (`http://{$Node IP}:{$NodePort}`). Click **Add**, select **Jenkins**, and then create the credentials with the SonarQube admin token in the dialog that appears as shown in the second image below. After adding the credentials, select it from the drop-down list for **Server authentication token** and then click **Apply** to finish.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
If the **Add** button is not working, which is a known bug from Jenkins, you can navigate to **Manage Credentials** under **Manage Jenkins**, click **Jenkins** under **Stores scoped to Jenkins**, click **Global credentials (unrestricted)**, and then click **Add Credentials** from the left navigation bar to add the credentials with the SonarQube admin token by referencing the second image above. After you add the credentials, you can select it from the drop-down list for **Server authentication token**.
|
||||
|
||||
{{</ notice >}}
|
||||
|
||||
### Step 6: Add sonarqubeURL to the KubeSphere Console
|
||||
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ weight: 11310
|
|||
http://10.77.1.201:30180
|
||||
```
|
||||
|
||||
3. 请使用地址 `http://Public IP:30180` 访问 Jenkins。安装 KubeSphere 时,默认情况下也会安装 Jenkins 仪表板。此外,Jenkins 还配置有 KubeSphere LDAP,这意味着您可以直接使用 KubeSphere 帐户(例如 `admin/P@88w0rd`)登录 Jenkins。有关配置 Jenkins 的更多信息,请参见 [Jenkins 系统设置](../../../devops-user-guide/how-to-use/jenkins-setting/)。
|
||||
3. 请使用地址 `http://{$Public IP}:30180` 访问 Jenkins。安装 KubeSphere 时,默认情况下也会安装 Jenkins 仪表板。此外,Jenkins 还配置有 KubeSphere LDAP,这意味着您可以直接使用 KubeSphere 帐户(例如 `admin/P@88w0rd`)登录 Jenkins。有关配置 Jenkins 的更多信息,请参见 [Jenkins 系统设置](../../../devops-user-guide/how-to-use/jenkins-setting/)。
|
||||
|
||||

|
||||
|
||||
|
|
@ -200,11 +200,11 @@ weight: 11310
|
|||
|
||||
{{</ notice >}}
|
||||
|
||||
4. 点击左侧的 **Manage Jenkins**。
|
||||
4. 点击左侧的**系统管理**。
|
||||
|
||||

|
||||
|
||||
5. 向下翻页找到并点击 **Configure System**。
|
||||
5. 向下翻页找到并点击**系统配置**。
|
||||
|
||||

|
||||
|
||||
|
|
@ -212,9 +212,17 @@ weight: 11310
|
|||
|
||||

|
||||
|
||||
7. 输入 **Name**、**Server URL** (`http://Node IP:port`) 和 **Server authentication token**(SonarQube 管理管理员令牌)。点击 **Apply** 完成操作。
|
||||
7. 输入 **Name** 和 **Server URL** (`http://{$Node IP}:{$NodePort}`)。点击**添加**,选择 **Jenkins**,然后在弹出对话框中用 SonarQube 管理员令牌创建凭证(如下方第二张截图所示)。创建凭证后,从 **Server authentication token** 旁边的下拉列表中选择该凭证。点击**应用**完成操作。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
如果点击**添加**按钮无效(Jenkins 已知问题),您可以前往**系统管理**下的 **Manage Credentials** 并点击 **Stores scoped to Jenkins** 下的 **Jenkins**,再点击**全局凭据 (unrestricted)**,然后点击左侧导航栏的**添加凭据**,参考上方第二张截图用 SonarQube 管理员令牌添加凭证。添加凭证后,从 **Server authentication token** 旁边的下拉列表中选择该凭证。
|
||||
|
||||
{{</ notice >}}
|
||||
|
||||
### 步骤 6:将 sonarqubeURL 添加到 KubeSphere 控制台
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 294 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 689 KiB |
|
Before Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 198 KiB |
|
Before Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 191 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 130 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 860 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 505 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 616 KiB |