From 91bc759912508c1e600027ae7193c1245e4b8b96 Mon Sep 17 00:00:00 2001
From: Mark Waite
Date: Fri, 21 Jun 2024 17:47:13 -0600
Subject: [PATCH] Use modern syntax in git step online help
The "$class: 'GitSCM'" syntax has not been needed for many releases.
---
src/main/resources/jenkins/plugins/git/GitStep/help.html | 4 ++--
.../resources/jenkins/plugins/git/GitStep/help_ja.html | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/main/resources/jenkins/plugins/git/GitStep/help.html b/src/main/resources/jenkins/plugins/git/GitStep/help.html
index b057c30617..d84acba0ee 100644
--- a/src/main/resources/jenkins/plugins/git/GitStep/help.html
+++ b/src/main/resources/jenkins/plugins/git/GitStep/help.html
@@ -19,8 +19,8 @@
The git
step is a simplified shorthand for a subset of the more powerful checkout
step:
-checkout([$class: 'GitSCM', branches: [[name: '*/master']],
- userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]])
+checkout scmGit(branches: [[name: 'main]],
+ userRemoteConfigs: [[url: 'https://git-server/user/repository.git']])
diff --git a/src/main/resources/jenkins/plugins/git/GitStep/help_ja.html b/src/main/resources/jenkins/plugins/git/GitStep/help_ja.html
index d43618a316..5bdb436fa5 100644
--- a/src/main/resources/jenkins/plugins/git/GitStep/help_ja.html
+++ b/src/main/resources/jenkins/plugins/git/GitStep/help_ja.html
@@ -3,9 +3,11 @@
Gitステップです。 指定したリポジトリからクローンを実行します。
- このステップは、一般的なSCMのステップである
-checkout([$class: 'GitSCM', branches: [[name: '*/master']],
- userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]])
+ このステップは、一般的なSCMのステップである
+
+checkout scmGit(branches: [[name: 'main]],
+ userRemoteConfigs: [[url: 'https://git-server/user/repository.git']])
+
の短縮形です。