Skip to content

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

@jenkins-infra-bot

Description

@jenkins-infra-bot

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


Originally reported by ruyut, imported from: Fix syntax error in checkout scmGit example in help
  • assignee: ruyut
  • status: Fixed but Unreleased
  • priority: Minor
  • component(s): git-plugin
  • label(s): git, plugin
  • resolution: Fixed
  • resolved: 2025-02-20T11:53:41+00:00
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02
Raw content of original issue

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions