Utility class to provide nicer, terser DSL for common tasks
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
project_repos(java.lang.Object context, java.lang.Object repos, java.lang.Object use_versions = true) Utility method to create a multiscm block from a list of repos. |
|
static void |
shallowGit(java.lang.Object context, java.lang.Object gitUrl, java.lang.Object gitBranch = "master") Utility method to do git shallow-clones easily. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Utility method to create a multiscm block from a list of repos.
context
- A reference to the job object being modifiedrepos
- List of repo maps. Each repo object must include url property and
optionally sub_directory(checkout subdirectory), shallow(shallow clone) and
disable_submodule properties.use_versions
- Flag to check out the repo at a specific tag.
The tag is parsed out from url property appended after @ sign.Utility method to do git shallow-clones easily.
context
- A reference to the job object being modifiedgitUrl
- A string containing a git repo URLgitBranch
- Optional branch to check-out; defaults to master