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 created issue -
          ruyut made changes -
          Description Original: The help.html file currently contains a syntax error in the checkout scmGit example. The code snippet is written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main]],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) {code}
          However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main']],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]){code}
           
          New: The help.html file currently contains a syntax error in the checkout scmGit example. The code snippet is written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main]],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) {code}
          However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main']],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]){code}


          I fix it, [GitHub PR|https://github.com/jenkinsci/git-plugin/pull/1723]
          Mark Waite made changes -
          Summary Original: Fix syntax error in checkout scmGit example in help.html New: Fix syntax error in checkout scmGit example in help_ja.html
          Mark Waite made changes -
          Description Original: The help.html file currently contains a syntax error in the checkout scmGit example. The code snippet is written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main]],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) {code}
          However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main']],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]){code}


          I fix it, [GitHub PR|https://github.com/jenkinsci/git-plugin/pull/1723]
          New: The help_ja.html file currently contains a syntax error in the checkout scmGit example. The code snippet is written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main]],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) {code}
          However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main']],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]){code}


          I fix it, [GitHub PR|https://github.com/jenkinsci/git-plugin/pull/1723]
          Mark Waite made changes -
          Remote Link New: This issue links to "PR-1723 - fix the error in the example (Web Link)" [ 30544 ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Description Original: The help_ja.html file currently contains a syntax error in the checkout scmGit example. The code snippet is written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main]],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) {code}
          However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main']],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]){code}


          I fix it, [GitHub PR|https://github.com/jenkinsci/git-plugin/pull/1723]
          New: 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:
          {code:java}
          checkout scmGit(branches: [[name: 'main]],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]) {code}
          However, the correct syntax should include the missing closing bracket for the branches list. It should be written as:
          {code:java}
          checkout scmGit(branches: [[name: 'main']],
              userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]){code}


          I fix it, [GitHub PR|https://github.com/jenkinsci/git-plugin/pull/1723]
          Mark Waite made changes -
          Summary Original: Fix syntax error in checkout scmGit example in help_ja.html New: 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: