Skip to content
Browse files
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 9ccae57a8d5b746e10dfcdc3f44400729d7da27f
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/main/resources/org/jenkinsci/plugins/workflow/steps/scm/GenericSCMStep/{help.html → help.jelly}
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?jelly escape-by-default='true'?>
<div xmlns:j="jelly:core" xmlns:st="jelly:stapler">
This is a special step that allows to run checkouts using any configuration
options offered by any Pipeline-compatible SCM plugin.
@@ -17,6 +19,15 @@

def commitHash = checkout(scm).GIT_COMMIT
Specific variables advertised by installed plugins:
<!-- 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"/>
Any other specific step to run checkouts (like <code>svn</code> or <code>git</code>)
are simplistic options of this step.

0 comments on commit 9ccae57

Please sign in to comment.