How to Integrate SonarQube With Jenkins

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2024
  • Need help with your Jenkins questions?
    Visit community.jenkins.io/c/using-...
    Timecodes ⏱:
    00:00 Introduction
    00:09 Overview
    00:31 Starting point
    00:59 Install SonarQube Scanner for Jenkins plugin
    02:11 Configure a SonarQube server in Jenkins
    03:11 Create authentication token in SonarQube
    03:53 Create Secret Text credential
    04:19 Create a pipeline job
    07:19 Review the demo project in SonarQube
    08:40 Add a webhook to SonarQube
    10:42 Re-run pipeline job
    11:33 Why should you integrate SonarQube with Jenkins?
    #jenkinstutorial #sonarqube
    Information referenced in this video:
    Gist:
    gist.github.com/darinpope/5a4...
    Jenkins LTS 2.289.3
    www.jenkins.io/changelog-stab...
    CloudBees on Twitter:
    / cloudbees
    Darin on Twitter:
    / darinpope
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 28

  • @1652R
    @1652R 2 หลายเดือนก่อน

    This video is amazing. I can understand the content very quick and accurate.

  • @marcelbarbosa281
    @marcelbarbosa281 ปีที่แล้ว

    Thank you for the video! I was searching about exactly this :D

  • @luismarquez5047
    @luismarquez5047 2 ปีที่แล้ว +1

    Great quality video, thank you.😁

  • @user-bc9jq6hm4k
    @user-bc9jq6hm4k 2 ปีที่แล้ว

    Thank you for your video.

  • @user-cb6st9fq6p
    @user-cb6st9fq6p 8 หลายเดือนก่อน

    Very useful video. Perfect Sir

  • @owenzmortgage8273
    @owenzmortgage8273 ปีที่แล้ว

    Great! Thanks

  • @elyeszarrad1504
    @elyeszarrad1504 ปีที่แล้ว

    Exellent video

  • @oleksandrlytvyn532
    @oleksandrlytvyn532 ปีที่แล้ว

    Thank you

  • @jamesmadlangtuta3156
    @jamesmadlangtuta3156 2 ปีที่แล้ว +2

    Pls help. Trying to run for familiarity and the jenkins build log says
    WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?
    how to pass this one?

    • @sonpham4007
      @sonpham4007 2 ปีที่แล้ว

      I have the same error output.

  • @user-vn1fl1td4j
    @user-vn1fl1td4j 2 หลายเดือนก่อน

    is it important to have stand alone Sonar Cube Server if project is not big

  • @julienbessakanga2489
    @julienbessakanga2489 2 ปีที่แล้ว +1

    @CloudBeesTV
    Stuck at this step:
    Still waiting to schedule task
    ‘Jenkins’ doesn’t have label ‘linux’

    • @vikusya61
      @vikusya61 2 ปีที่แล้ว +3

      It means that you don't have Jenkins slave labelled "linux". Create one or type "agent any"

    • @EdwardPike
      @EdwardPike ปีที่แล้ว

      @@vikusya61 I added "linux" (no quotes) to the labels area of the default build agent and it still did not work. Ended up copying script into the script area and changing to "agent any" (no curly brackets now, made that mistake too). Now I'm missing maven, etc :-)

  • @nassimbenaissa8048
    @nassimbenaissa8048 ปีที่แล้ว +1

    Anyone have any idea why the add button to add Server authentication token doesnt work ?

    • @jorgecantu9662
      @jorgecantu9662 ปีที่แล้ว +1

      I had the same problem, I just restarted Jenkins and works fine.

    • @kutaykaracair
      @kutaykaracair 10 หลายเดือนก่อน +3

      Maybe late response but, I first saved then add sonarqube credentials. Hope this helps

  • @m19mesoto
    @m19mesoto 2 ปีที่แล้ว +2

    I wish you showed sonar config end-to-end.

  • @lingrajbiradar4416
    @lingrajbiradar4416 ปีที่แล้ว

    Hi, how to setup sonarqube? can you please provide a video link?

    • @putinscat1208
      @putinscat1208 ปีที่แล้ว

      No kidding, just skipped it.

  • @LeHoang-cb7ng
    @LeHoang-cb7ng 2 ปีที่แล้ว

    How could I pass this: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions

  • @maxx8011
    @maxx8011 ปีที่แล้ว

    Jekins? Whats that?

  • @veerendratanneru
    @veerendratanneru 2 ปีที่แล้ว +2

    @CloudBeesTV
    Stuck at this step:
    Still waiting to schedule task
    ‘Jenkins’ doesn’t have label ‘linux’

    • @agungprakasa7214
      @agungprakasa7214 2 ปีที่แล้ว

      how to fix this @CloudBeesTV?

    • @soktahu2459
      @soktahu2459 2 ปีที่แล้ว

      it means you have agent labeled as 'Linux', just type any as agent (agent any).