The help.html file and help_ja.html file currently contain a syntax error in the checkout scmGit example. The code snippet is written as:

      checkout scmGit(branches: [[name: 'main]],
          userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) 

      However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:

      checkout scmGit(branches: [[name: 'main']],
          userRemoteConfigs: [[url: 'https://git-server/user/repository.git']])

      I fix it, GitHub PR

          [JENKINS-75311] Fix syntax error in checkout scmGit example in help

            ruyut ruyut
            ruyut ruyut
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: