Skip to content

Commit

Permalink
Use a working git:// protocol example (jenkinsci#1503)
Browse files Browse the repository at this point in the history
https://github.blog/2021-09-01-improving-git-protocol-security-github/
announced the removal of the git:// protocol from GitHub.  Change the
documentation to use a provider that still supports unauthenticated
git:// protocol.
  • Loading branch information
MarkEWaite committed Sep 1, 2023
1 parent 5c6eb25 commit 9fa65a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/hudson/plugins/git/GitSCM/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@

<strong><a id="checkout-step-with-git-and-polling">Example: Checkout step with git protocol and polling disabled</a></strong>
<p>
Checkout from the Jenkins platform labeler repository using git protocol, no credentials, the master branch, and no polling for changes.
Checkout from the command line git repository using git protocol, no credentials, the master branch, and no polling for changes.
If poll is <code>false</code>, then the remote repository will not be polled for changes.
If poll is <code>true</code> or is not set, then the remote repository will be polled for changes.
See the <a href="https://github.com/jenkinsci/workflow-scm-step-plugin/blob/master/README.md#polling">workflow scm step documentation</a> for more polling details.
</p><p>The <a href="https://www.jenkins.io/redirect/pipeline-snippet-generator">Pipeline Snippet Generator</a> generates this example:
<pre>
checkout poll: false,
scmGit(userRemoteConfigs: [
[ url: 'git://github.com/jenkinsci/platformlabeler-plugin' ]
[ url: 'git://git.kernel.org/pub/scm/git/git.git ]
])
</pre>
</p>
Expand Down

0 comments on commit 9fa65a1

Please sign in to comment.