Skip to content

Commit

Permalink
Use modern syntax in git step online help
Browse files Browse the repository at this point in the history
The "$class: 'GitSCM'" syntax has not been needed for many releases.
  • Loading branch information
MarkEWaite committed Jun 22, 2024
1 parent ed321cf commit 19dcec3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/jenkins/plugins/git/GitStep/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<p>
The <code>git</code> step is a simplified shorthand for a subset of the more powerful <code>checkout</code> step:
<pre>
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']])
</pre>
</p>

Expand Down
8 changes: 5 additions & 3 deletions src/main/resources/jenkins/plugins/git/GitStep/help_ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
Gitステップです。 指定したリポジトリからクローンを実行します。
</p>
<p>
このステップは、一般的なSCMのステップである<code>
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'https://git-server/user/repository.git']]])</code>
このステップは、一般的なSCMのステップである
<pre>
checkout scmGit(branches: [[name: 'main]],
userRemoteConfigs: [[url: 'https://git-server/user/repository.git']])
</pre>
  の短縮形です。 
</p>
</div>

0 comments on commit 19dcec3

Please sign in to comment.