Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #18 from jglick/doc-JENKINS-26100
[JENKINS-26100] Display buildEnv views of available SCM installations
  • Loading branch information
jglick committed Jun 30, 2017
2 parents 17a9946 + 0008adc commit 9ccae57
Showing 1 changed file with 12 additions and 1 deletion.
@@ -1,4 +1,6 @@
<div>
<?xml version="1.0" encoding="UTF-8"?>
<?jelly escape-by-default='true'?>
<div xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<p>
This is a special step that allows to run checkouts using any configuration
options offered by any Pipeline-compatible SCM plugin.
Expand All @@ -17,6 +19,15 @@

def commitHash = checkout(scm).GIT_COMMIT
</pre>
<p>
Specific variables advertised by installed plugins:
</p>
<!-- Cf. EnvironmentContributor/EnvVarsHtml/index.groovy -->
<dl class="env-vars">
<j:forEach var="d" items="${app.getDescriptor('org.jenkinsci.plugins.workflow.steps.scm.GenericSCMStep').applicableDescriptors}">
<st:include class="${d.clazz}" page="buildEnv" optional="true"/>
</j:forEach>
</dl>
<p>
Any other specific step to run checkouts (like <code>svn</code> or <code>git</code>)
are simplistic options of this step.
Expand Down

0 comments on commit 9ccae57

Please sign in to comment.