Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-14354

Explain how to set up Jenkins without branch support

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.7
    • Component/s: Documentation, Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Currently, the tutorial for Jenkins supposes branch support. This won't work for the Community Edition.

      We need to:

      • Update the "Prerequisites" step, only mentioning the scanner plugin.
      • Create a new 1st step, to replace "Create a Multibranch Pipeline Job".
        • 1 From Jenkins' dashboard, click "New Item" and create a Pipeline Job.
        • 2 Under Build Triggers, choose Trigger builds remotely. You must set a unique, secret token for this field.
        • 3 Under Pipeline, make sure the parameters are set as follows:
          • Definition: Pipeline script from SCM
          • SCM: Your SCM (Git, SVN, etc). Make sure to only build your main branch.
          • Script Path: Jenkinsfile
        • 4 Click Save
      • Update the Webhook steps:
        • They must target /job/JENKINS_JOB_NAME/build?token=JENKINS_BUILD_TRIGGER_TOKEN instead of the Branch Source plugins.
        • They should only react on Repository: push events.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeremy.davis Jeremy Davis
              Reporter:
              wouter.admiraal Wouter Admiraal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: