Cov txheej txheem:

Koj koom ua ke SonarQube hauv Jenkins li cas?
Koj koom ua ke SonarQube hauv Jenkins li cas?

Video: Koj koom ua ke SonarQube hauv Jenkins li cas?

Video: Koj koom ua ke SonarQube hauv Jenkins li cas?
Video: Yuam Kev Ua Koj Sev - Pajai Yang/Paj Ntsais Yaj (Official Music Video) 2024, Kaum ib hlis
Anonim

Rau kev koom ua ke ntawm SonarQube hauv Jenkins, koj tau ua cov kauj ruam hauv qab no

  1. Nkag mus rau hauv Jenkins thiab nruab SonarQube scanner plugin. Mus rau Tswj Jenkins -> Tswj Plugins> Muaj -> SonarQube tshuab luam ntawv.
  2. Configure SonarQube txoj kev hauv tsev.
  3. Tam sim no, Configure SonarQube server hauv Jenkins .
  4. Txuag nws.

Tom qab ntawd, ib tus tuaj yeem nug, Kuv yuav siv SonarQube scanner hauv Jenkins li cas?

Nkag mus rau hauv Jenkins ua tus thawj tswj hwm thiab mus rau Manage Jenkins > Configure Qhov system. Scroll cia rau hauv SonarQube configuration section, nyem Ntxiv SonarQube , thiab ntxiv qhov tseem ceeb uas koj tau txais kev tshoov siab rau. Tus neeg rau zaub mov authentication token yuav tsum tau tsim raws li 'Secret Text' daim ntawv pov thawj.

Tsis tas li ntawd, koj siv SonarQube li cas? Teeb SonarQube

  1. Khiav SonarQube server.
  2. Khiav docker ps thiab xyuas seb lub server puas ua haujlwm.
  3. Tos rau tus neeg rau zaub mov pib thiab nkag mus rau SonarQube server ntawm https://localhost:9000 siv cov ntaub ntawv pov thawj default: ID nkag mus: admin password: admin.
  4. Mus rau: https://localhost:9000/account/security/ thiab tsim ib lub token.

Ib yam li ntawd, kuv yuav teeb tsa Sonar code li cas hauv Jenkins?

2 Teb. Koj yuav tsum xub nruab " SonarQube Scanner Plugin" thiab teeb tsa SonarQube server kev teeb tsa hauv Global Tool chaw ntawm cov jenkins . Tom qab ntawd hauv txoj haujlwm Kev teeb tsa -> Tsim -> SonarQube Scanner hais txog cov khoom nram qab no ntsig txog jacoco ua nrog sonar qhov project ntsig txog cov khoom.

Sonar Jenkins yog dab tsi?

SonarQube yog daim ntawv thov web-based uas yog siv rau kev tswj hwm hauv nruab nrab ntawm cov lej zoo. Peb txiav txim siab los koom ua ke nrog Jenkins los muab ib tug nias daws. Scenario: Integrate SonarQube nrog Jenkins txhawm rau khiav chav kuaj mob thiab tshaj tawm cov txiaj ntsig rau SonarQube.

Pom zoo: