From 658a12f4943c6afe8674018201fe36e9e38f181a Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Tue, 16 Feb 2021 10:14:09 -0700 Subject: [PATCH] Remove default values from git plugin example Default values for submodule configuration generation are ignored in git plugin 4.6.0. Changes from the default values are untested and expected to be unworkable in earlier plugin versions. Remove those settings to reduce "noise" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11779124..989225d9 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ This test will print the call stack of the execution : exampleJob.load(src/test/jenkins/lib/utils.jenkins) utils.run() exampleJob.stage(Checkout, groovy.lang.Closure) - exampleJob.checkout({$class=GitSCM, branches=[{name=feature_test}], doGenerateSubmoduleConfigurations=false, extensions=[], submoduleCfg=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]}) + exampleJob.checkout({$class=GitSCM, branches=[{name=feature_test}], extensions=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]}) utils.currentRevision() utils.sh({returnStdout=true, script=git rev-parse HEAD}) exampleJob.gitlabBuilds({builds=[build, test]}, groovy.lang.Closure)