Skip to content

Commit

Permalink
Merge pull request #341 from MarkEWaite/remove-outdated-git-args
Browse files Browse the repository at this point in the history
Remove obsolete doGenerateSubmoduleConfigurations
  • Loading branch information
nre-ableton authored Feb 17, 2021
2 parents 863acf9 + 5519ca1 commit ce22e78
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/test/groovy/com/lesfurets/jenkins/TestJenkinsFile.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class TestJenkinsFile extends BaseRegressionTest {
binding.setVariable('scm', [
$class : 'GitSCM',
branches : [[name: scmBranch]],
doGenerateSubmoduleConfigurations: false,
extensions : [],
submoduleCfg : [],
userRemoteConfigs : [[
credentialsId: 'gitlab_git_ssh',
url : 'github.com/lesfurets/JenkinsPipelineUnit.git'
Expand Down
2 changes: 0 additions & 2 deletions src/test/groovy/com/lesfurets/jenkins/TestParallelJob.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class TestParallelJob extends BasePipelineTest {
binding.setVariable('scm', [
$class : 'GitSCM',
branches : [[name: scmBranch]],
doGenerateSubmoduleConfigurations: false,
extensions : [],
submoduleCfg : [],
userRemoteConfigs : [[
credentialsId: 'gitlab_git_ssh',
url : 'github.com/lesfurets/JenkinsPipelineUnit.git'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class TestParallelJobCPS extends BasePipelineTestCPS {
binding.setVariable('scm', [
$class : 'GitSCM',
branches : [[name: scmBranch]],
doGenerateSubmoduleConfigurations: false,
extensions : [],
submoduleCfg : [],
userRemoteConfigs : [[
credentialsId: 'gitlab_git_ssh',
url : 'github.com/lesfurets/JenkinsPipelineUnit.git'
Expand Down
2 changes: 0 additions & 2 deletions src/test/groovy/com/lesfurets/jenkins/TestRegression.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class TestRegression extends BaseRegressionTestCPS {
binding.setVariable('scm', [
$class : 'GitSCM',
branches : [[name: scmBranch]],
doGenerateSubmoduleConfigurations: false,
extensions : [],
submoduleCfg : [],
userRemoteConfigs : [[
credentialsId: 'gitlab_git_ssh',
url : 'github.com/lesfurets/JenkinsPipelineUnit.git'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class TestSerialization extends BasePipelineTest {
binding.setVariable('scm', [
$class : 'GitSCM',
branches : [[name: scmBranch]],
doGenerateSubmoduleConfigurations: false,
extensions : [],
submoduleCfg : [],
userRemoteConfigs : [[
credentialsId: 'gitlab_git_ssh',
url : 'github.com/lesfurets/JenkinsPipelineUnit.git'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class TestSerializationCPS extends BasePipelineTestCPS {
binding.setVariable('scm', [
$class : 'GitSCM',
branches : [[name: scmBranch]],
doGenerateSubmoduleConfigurations: false,
extensions : [],
submoduleCfg : [],
userRemoteConfigs : [[
credentialsId: 'gitlab_git_ssh',
url : 'github.com/lesfurets/JenkinsPipelineUnit.git'
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/callstacks/TestJenkinsFile_develop.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Jenkinsfile.run()
Jenkinsfile.stage(Build, groovy.lang.Closure)
Jenkinsfile.node(groovy.lang.Closure)
Jenkinsfile.checkout({$class=GitSCM, branches=[{name=develop}], doGenerateSubmoduleConfigurations=false, extensions=[], submoduleCfg=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]})
Jenkinsfile.checkout({$class=GitSCM, branches=[{name=develop}], extensions=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]})
Jenkinsfile.echo(Running mvn verify on branch develop)
Jenkinsfile.sh(mkdir -p ~/.gnupg)
Jenkinsfile.file({credentialsId=gpg-pubring, variable=GPG_PUB_RING})
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/callstacks/TestJenkinsFile_feature_.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Jenkinsfile.run()
Jenkinsfile.stage(Build, groovy.lang.Closure)
Jenkinsfile.node(groovy.lang.Closure)
Jenkinsfile.checkout({$class=GitSCM, branches=[{name=feature_}], doGenerateSubmoduleConfigurations=false, extensions=[], submoduleCfg=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]})
Jenkinsfile.checkout({$class=GitSCM, branches=[{name=feature_}], extensions=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]})
Jenkinsfile.echo(Running mvn verify on branch feature_)
Jenkinsfile.sh(mkdir -p ~/.gnupg)
Jenkinsfile.file({credentialsId=gpg-pubring, variable=GPG_PUB_RING})
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/callstacks/TestJenkinsFile_master.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Jenkinsfile.run()
Jenkinsfile.stage(Build, groovy.lang.Closure)
Jenkinsfile.node(groovy.lang.Closure)
Jenkinsfile.checkout({$class=GitSCM, branches=[{name=master}], doGenerateSubmoduleConfigurations=false, extensions=[], submoduleCfg=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]})
Jenkinsfile.checkout({$class=GitSCM, branches=[{name=master}], extensions=[], userRemoteConfigs=[{credentialsId=gitlab_git_ssh, url=github.com/lesfurets/JenkinsPipelineUnit.git}]})
Jenkinsfile.echo(Running mvn deploy on branch master)
Jenkinsfile.sh(mkdir -p ~/.gnupg)
Jenkinsfile.file({credentialsId=gpg-pubring, variable=GPG_PUB_RING})
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/callstacks/TestRegression_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
exampleJob.load(src/test/jenkins/lib/properties.jenkins)
properties.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)
Expand Down

0 comments on commit ce22e78

Please sign in to comment.