Skip to content

Commit f500a03

Browse files
authored
Merge pull request #42 from MarkEWaite/point-users-to-pipeline-snippet-generator
Add snippet generator link to help page
2 parents 4de73bf + 3180671 commit f500a03

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The goals are the maximum possible compatibility with existing plugins, and grea
1313

1414
A freestyle project has a single SCM configured in the UI that governs the one and only workspace for the build.
1515
A Pipeline can be configured similarly, but the SCM definition becomes a regular step in its script.
16-
In the simplest case you would just do an SCM clone/update at the start of your script, as soon as you have allocated a slave with a workspace:
16+
In the simplest case you would just do an SCM clone/update at the start of your script, as soon as you have allocated an agent with a workspace:
1717

1818
```
1919
node {
@@ -23,15 +23,15 @@ node {
2323
```
2424

2525
Jenkins will clone the repository into the workspace and continue with your script.
26-
(Subsequent builds will update rather than clone, if the same slave and workspace are available again.)
26+
(Subsequent builds will update rather than clone, if the same agent and workspace are available again.)
2727

2828
### Multiple SCMs
2929

3030
While freestyle projects can use the Multiple SCMs plugin to check out more than one repository,
3131
or specify multiple locations in SCM plugins that support that (notably the Git plugin),
3232
this support is quite limited.
3333
In a Pipeline you can check out multiple SCMs, of the same or different kinds, in the same or different workspaces, wherever and whenever you like.
34-
For example, to check out and build several repositories in parallel, each on its own slave:
34+
For example, to check out and build several repositories in parallel, each on its own agent:
3535

3636
```
3737
parallel repos.collectEntries {repo -> [/* thread label */repo, {
@@ -57,7 +57,7 @@ This means that you can run multiple SCMs, even from a dynamic list, and get a r
5757

5858
If you configure the _Poll SCM_ trigger in the Pipeline’s UI configuration screen, then by default Jenkins will also poll for changes according to the selected _Schedule_, and schedule new builds automatically if changes are detected.
5959
(Note that this configuration is not part of the Pipeline script, because it affects activities that Jenkins runs outside of the Pipeline.)
60-
Some SCMs allow polling with no workspace, which is ideal; others will try to lock the same slave and workspace previously used, to run polling on the slave.
60+
Some SCMs allow polling with no workspace, which is ideal; others will try to lock the same agent and workspace previously used, to run polling on the agent.
6161

6262
To avoid polling the server repeatedly, most SCM plugins allow remote commit triggers, such as the `/git/notifyCommit?url=…` HTTP endpoint in the case of the Git plugin.
6363
These also work with Pipelines, unless (as with freestyle projects) you checked _Ignore post-commit hooks_ in a _Poll SCM_ block.
@@ -79,7 +79,7 @@ The `checkout` step may be used to run any other SCM plugin, provided that it ha
7979
It could also be used to run an SCM for which there is a special integration that lacks support for an exotic feature.
8080
The step takes an `scm` parameter which is a map containing at least a `$class` parameter giving the full or simple class name of the desired `SCM` implementation, and the standard `poll` and `changelog` parameters.
8181

82-
It also takes any other parameters supported by the SCM plugin in its configuration form, using their internal names and values; use _Snippet Generator_ to get a detailed example for your SCM.
82+
It also takes any other parameters supported by the SCM plugin in its configuration form, using their internal names and values; use [_Snippet Generator_](https://jenkins.io/redirect/pipeline-snippet-generator)to get a detailed example for your SCM.
8383
Optional parameters can be omitted and will take their default values (to the extent supported by the SCM plugin).
8484
For example, to run Mercurial (1.51-beta-2 or higher):
8585

src/main/resources/org/jenkinsci/plugins/workflow/steps/scm/GenericSCMStep/help.jelly

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
<?jelly escape-by-default='true'?>
33
<div xmlns:j="jelly:core" xmlns:st="jelly:stapler">
44
<p>
5-
This is a special step that allows to run checkouts using any configuration
5+
This is a special step that will checkout using the configuration
66
options offered by any Pipeline-compatible SCM plugin.
7-
To use a concrete SCM implementations, just install the corresponding plugin
8-
and check if it is shown in the list below.
9-
Then select the SCM to use from the dropdown list and configure it as needed.
7+
Install the corresponding SCM plugin and select it from the list in the
8+
<strong><a href="https://jenkins.io/redirect/pipeline-snippet-generator">Pipeline Snippet Generator</a></strong>.
9+
The
10+
<strong><a href="https://jenkins.io/redirect/pipeline-snippet-generator">Pipeline Snippet Generator</a></strong>
11+
uses the installed SCM plugins of your Jenkins server to suggest pipeline snippets.
1012
</p>
1113
<p>This step returns a <code>Map</code> of any variables the SCM plugin would
1214
set in a Freestyle job, so if your SCM is git, you can do:

0 commit comments

Comments
 (0)