Class SCMVar
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.cps.GlobalVariable
-
- org.jenkinsci.plugins.workflow.multibranch.SCMVar
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class SCMVar extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Adds anscm
global variable to the script. This makes it possible to runcheckout scm
to get your project sources in the right branch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SCMVar.Pickler
Ensures thatscm
is saved in its XML representation.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SCMVar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
SCM
getValue(org.jenkinsci.plugins.workflow.cps.CpsScript script)
-
-
-
Method Detail
-
getName
@NonNull public String getName()
- Specified by:
getName
in classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-
-