Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a working git:// protocol example #1503

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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