jenkins_pipeline_builder 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +28 -43
- data/{spec/unit_tests/spec_helper.rb → .simplecov} +2 -15
- data/README.md +66 -11
- data/Rakefile +1 -25
- data/bin/generate +0 -1
- data/jenkins_pipeline_builder.gemspec +6 -6
- data/lib/jenkins_pipeline_builder.rb +14 -8
- data/lib/jenkins_pipeline_builder/builders.rb +207 -155
- data/lib/jenkins_pipeline_builder/cli/base.rb +1 -1
- data/lib/jenkins_pipeline_builder/cli/describe.rb +12 -8
- data/lib/jenkins_pipeline_builder/cli/list.rb +7 -7
- data/lib/jenkins_pipeline_builder/compiler.rb +62 -49
- data/lib/jenkins_pipeline_builder/extensions.rb +108 -0
- data/lib/jenkins_pipeline_builder/generator.rb +209 -160
- data/lib/jenkins_pipeline_builder/job_builder.rb +174 -105
- data/lib/jenkins_pipeline_builder/module_registry.rb +43 -59
- data/lib/jenkins_pipeline_builder/publishers.rb +166 -93
- data/lib/jenkins_pipeline_builder/pull_request.rb +7 -7
- data/lib/jenkins_pipeline_builder/triggers.rb +63 -40
- data/lib/jenkins_pipeline_builder/utils.rb +10 -10
- data/lib/jenkins_pipeline_builder/version.rb +1 -1
- data/lib/jenkins_pipeline_builder/view.rb +94 -123
- data/lib/jenkins_pipeline_builder/wrappers.rb +163 -96
- data/spec/lib/jenkins_pipeline_builder/compiler_spec.rb +31 -0
- data/spec/lib/jenkins_pipeline_builder/extensions_spec.rb +145 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/pullrequest_pipeline/PullRequest-10-SampleJob.yaml +2 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/pullrequest_pipeline/PullRequest-40-PullRequestGenerator.yaml +12 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/pullrequest_pipeline/project.yaml +12 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/sample_pipeline/SamplePipeline-10-Commit.yaml +3 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/sample_pipeline/SamplePipeline-20-Acceptance.yaml +3 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/sample_pipeline/SamplePipeline-30-Release.yaml +3 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/sample_pipeline/project.yaml +12 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/sample_pipeline/view.yaml +5 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/template_pipeline/jobs.tar.gz +0 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/template_pipeline/project.yaml +15 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/generator_tests/test_job.xml +48 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/view_test/duplicate_view.yaml +4 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/view_test/parent_view.yaml +9 -0
- data/spec/lib/jenkins_pipeline_builder/fixtures/view_test/regular_view.yaml +5 -0
- data/spec/lib/jenkins_pipeline_builder/generator_spec.rb +165 -0
- data/spec/lib/jenkins_pipeline_builder/module_registry_spec.rb +147 -0
- data/spec/lib/jenkins_pipeline_builder/pull_request_spec.rb +47 -0
- data/spec/lib/jenkins_pipeline_builder/spec_helper.rb +25 -0
- data/spec/lib/jenkins_pipeline_builder/utils_spec.rb +22 -0
- data/spec/lib/jenkins_pipeline_builder/view_spec.rb +54 -0
- metadata +54 -136
- data/lib/jenkins_pipeline_builder/extendable.rb +0 -42
- data/lib/jenkins_pipeline_builder/xml_helper.rb +0 -40
- data/spec/func_tests/spec_helper.rb +0 -18
- data/spec/func_tests/view_spec.rb +0 -90
- data/spec/unit_tests/compiler_spec.rb +0 -20
- data/spec/unit_tests/fixtures/files/Job-Build-Flow.xml +0 -57
- data/spec/unit_tests/fixtures/files/Job-Build-Flow.yaml +0 -22
- data/spec/unit_tests/fixtures/files/Job-Build-Maven.xml +0 -129
- data/spec/unit_tests/fixtures/files/Job-Build-Maven.yaml +0 -31
- data/spec/unit_tests/fixtures/files/Job-DSL.yaml +0 -14
- data/spec/unit_tests/fixtures/files/Job-DSL1.xml +0 -27
- data/spec/unit_tests/fixtures/files/Job-DSL2.xml +0 -25
- data/spec/unit_tests/fixtures/files/Job-Gem-Build.xml +0 -142
- data/spec/unit_tests/fixtures/files/Job-Gem-Build.yaml +0 -43
- data/spec/unit_tests/fixtures/files/Job-Generate-From-Template.xml +0 -32
- data/spec/unit_tests/fixtures/files/Job-Generate-From-Template.yaml +0 -8
- data/spec/unit_tests/fixtures/files/Job-Multi-Project.xml +0 -134
- data/spec/unit_tests/fixtures/files/Job-Multi-Project.yaml +0 -49
- data/spec/unit_tests/fixtures/files/archive_artifact.xml +0 -23
- data/spec/unit_tests/fixtures/files/archive_artifact.yaml +0 -5
- data/spec/unit_tests/fixtures/files/choice_parameter.xml +0 -39
- data/spec/unit_tests/fixtures/files/choice_parameter.yaml +0 -14
- data/spec/unit_tests/fixtures/files/concurrent_build.xml +0 -17
- data/spec/unit_tests/fixtures/files/concurrent_build.yaml +0 -4
- data/spec/unit_tests/fixtures/files/copy_artifact.xml +0 -30
- data/spec/unit_tests/fixtures/files/copy_artifact.yaml +0 -14
- data/spec/unit_tests/fixtures/files/discard_old.xml +0 -17
- data/spec/unit_tests/fixtures/files/discard_old.yaml +0 -8
- data/spec/unit_tests/fixtures/files/downstream.xml +0 -36
- data/spec/unit_tests/fixtures/files/downstream.yaml +0 -13
- data/spec/unit_tests/fixtures/files/downstream_blocking.xml +0 -19
- data/spec/unit_tests/fixtures/files/downstream_blocking.yaml +0 -15
- data/spec/unit_tests/fixtures/files/git_include_exclude.xml +0 -53
- data/spec/unit_tests/fixtures/files/git_include_exclude.yaml +0 -8
- data/spec/unit_tests/fixtures/files/groovy_postbuild.xml +0 -29
- data/spec/unit_tests/fixtures/files/groovy_postbuild.yaml +0 -9
- data/spec/unit_tests/fixtures/files/periodic_build.xml +0 -21
- data/spec/unit_tests/fixtures/files/periodic_build.yaml +0 -5
- data/spec/unit_tests/fixtures/files/post_build_script.xml +0 -28
- data/spec/unit_tests/fixtures/files/post_build_script.yaml +0 -11
- data/spec/unit_tests/fixtures/files/prepare_environment.xml +0 -17
- data/spec/unit_tests/fixtures/files/prepare_environment.yaml +0 -7
- data/spec/unit_tests/fixtures/files/project.yaml +0 -15
- data/spec/unit_tests/fixtures/files/properties_file.xml +0 -27
- data/spec/unit_tests/fixtures/files/properties_file.yaml +0 -8
- data/spec/unit_tests/fixtures/files/remote_job.xml +0 -18
- data/spec/unit_tests/fixtures/files/remote_job.yaml +0 -19
- data/spec/unit_tests/fixtures/files/rvm05.xml +0 -26
- data/spec/unit_tests/fixtures/files/rvm05.yaml +0 -5
- data/spec/unit_tests/fixtures/files/specific_priority.xml +0 -22
- data/spec/unit_tests/fixtures/files/specific_priority.yaml +0 -6
- data/spec/unit_tests/fixtures/files/throttle.xml +0 -17
- data/spec/unit_tests/fixtures/files/throttle.yaml +0 -8
- data/spec/unit_tests/fixtures/files/upstream.xml +0 -17
- data/spec/unit_tests/fixtures/files/upstream.yaml +0 -7
- data/spec/unit_tests/fixtures/pull_request/00.yaml +0 -14
- data/spec/unit_tests/fixtures/pull_request/10.yaml +0 -7
- data/spec/unit_tests/fixtures/pull_request/11.yaml +0 -4
- data/spec/unit_tests/fixtures/pull_request/project.yaml +0 -11
- data/spec/unit_tests/fixtures/templates/external_job.yaml +0 -4
- data/spec/unit_tests/fixtures/templates/project_with_jobs.yaml +0 -25
- data/spec/unit_tests/generator_spec.rb +0 -94
- data/spec/unit_tests/module_registry_spec.rb +0 -16
- data/spec/unit_tests/resolve_dependencies_spec.rb +0 -266
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project>
|
3
|
-
<actions/>
|
4
|
-
<description/>
|
5
|
-
<keepDependencies>false</keepDependencies>
|
6
|
-
<properties/>
|
7
|
-
<scm class="hudson.scm.NullSCM"/>
|
8
|
-
<canRoam>true</canRoam>
|
9
|
-
<disabled>false</disabled>
|
10
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
11
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
12
|
-
<triggers class="vector"/>
|
13
|
-
<concurrentBuild>false</concurrentBuild>
|
14
|
-
<builders>
|
15
|
-
<javaposse.jobdsl.plugin.ExecuteDslScripts>
|
16
|
-
<targets>**/*.groovy
|
17
|
-
</targets>
|
18
|
-
<usingScriptText>false</usingScriptText>
|
19
|
-
<ignoreExisting>false</ignoreExisting>
|
20
|
-
<removedJobAction>IGNORE</removedJobAction>
|
21
|
-
</javaposse.jobdsl.plugin.ExecuteDslScripts>
|
22
|
-
</builders>
|
23
|
-
<publishers/>
|
24
|
-
<buildWrappers/>
|
25
|
-
</project>
|
@@ -1,142 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project>
|
3
|
-
<actions/>
|
4
|
-
<description/>
|
5
|
-
<keepDependencies>false</keepDependencies>
|
6
|
-
<properties/>
|
7
|
-
<scm class="hudson.plugins.git.GitSCM">
|
8
|
-
<configVersion>2</configVersion>
|
9
|
-
<userRemoteConfigs>
|
10
|
-
<hudson.plugins.git.UserRemoteConfig>
|
11
|
-
<name/>
|
12
|
-
<refspec/>
|
13
|
-
<url>git@github.com:devops/repo.git</url>
|
14
|
-
</hudson.plugins.git.UserRemoteConfig>
|
15
|
-
</userRemoteConfigs>
|
16
|
-
<branches>
|
17
|
-
<hudson.plugins.git.BranchSpec>
|
18
|
-
<name>master</name>
|
19
|
-
</hudson.plugins.git.BranchSpec>
|
20
|
-
</branches>
|
21
|
-
<disableSubmodules>false</disableSubmodules>
|
22
|
-
<recursiveSubmodules>false</recursiveSubmodules>
|
23
|
-
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
24
|
-
<authorOrCommitter>false</authorOrCommitter>
|
25
|
-
<clean>false</clean>
|
26
|
-
<wipeOutWorkspace>false</wipeOutWorkspace>
|
27
|
-
<pruneBranches>false</pruneBranches>
|
28
|
-
<remotePoll>false</remotePoll>
|
29
|
-
<ignoreNotifyCommit>false</ignoreNotifyCommit>
|
30
|
-
<useShallowClone>false</useShallowClone>
|
31
|
-
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
|
32
|
-
<gitTool>Default</gitTool>
|
33
|
-
<submoduleCfg class="list"/>
|
34
|
-
<relativeTargetDir/>
|
35
|
-
<reference/>
|
36
|
-
<excludedRegions/>
|
37
|
-
<excludedUsers>user</excludedUsers>
|
38
|
-
<gitConfigName/>
|
39
|
-
<gitConfigEmail/>
|
40
|
-
<skipTag>false</skipTag>
|
41
|
-
<includedRegions/>
|
42
|
-
<scmName/>
|
43
|
-
</scm>
|
44
|
-
<canRoam>true</canRoam>
|
45
|
-
<disabled>false</disabled>
|
46
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
47
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
48
|
-
<triggers class="vector">
|
49
|
-
<hudson.triggers.SCMTrigger>
|
50
|
-
<spec>H/5 * * * *</spec>
|
51
|
-
<ignorePostCommitHooks>false</ignorePostCommitHooks>
|
52
|
-
</hudson.triggers.SCMTrigger>
|
53
|
-
</triggers>
|
54
|
-
<concurrentBuild>false</concurrentBuild>
|
55
|
-
<builders>
|
56
|
-
<hudson.tasks.Shell>
|
57
|
-
<command>run.sh</command>
|
58
|
-
</hudson.tasks.Shell>
|
59
|
-
</builders>
|
60
|
-
<publishers>
|
61
|
-
<hudson.tasks.junit.JUnitResultArchiver>
|
62
|
-
<testResults>out/**/*.xml</testResults>
|
63
|
-
<keepLongStdio>false</keepLongStdio>
|
64
|
-
<testDataPublishers/>
|
65
|
-
</hudson.tasks.junit.JUnitResultArchiver>
|
66
|
-
<hudson.plugins.git.GitPublisher>
|
67
|
-
<configVersion>2</configVersion>
|
68
|
-
<pushMerge>true</pushMerge>
|
69
|
-
<pushOnlyIfSuccess>false</pushOnlyIfSuccess>
|
70
|
-
<branchesToPush>
|
71
|
-
<hudson.plugins.git.GitPublisher_-BranchToPush>
|
72
|
-
<targetRepoName>origin</targetRepoName>
|
73
|
-
<branchName>master</branchName>
|
74
|
-
</hudson.plugins.git.GitPublisher_-BranchToPush>
|
75
|
-
</branchesToPush>
|
76
|
-
</hudson.plugins.git.GitPublisher>
|
77
|
-
<hudson.plugins.rubyMetrics.rcov.RcovPublisher>
|
78
|
-
<reportDir>out/coverage/rcov</reportDir>
|
79
|
-
<targets>
|
80
|
-
<hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
|
81
|
-
<metric>TOTAL_COVERAGE</metric>
|
82
|
-
<healthy>80</healthy>
|
83
|
-
<unhealthy>0</unhealthy>
|
84
|
-
<unstable>0</unstable>
|
85
|
-
</hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
|
86
|
-
<hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
|
87
|
-
<metric>CODE_COVERAGE</metric>
|
88
|
-
<healthy>80</healthy>
|
89
|
-
<unhealthy>0</unhealthy>
|
90
|
-
<unstable>0</unstable>
|
91
|
-
</hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
|
92
|
-
</targets>
|
93
|
-
</hudson.plugins.rubyMetrics.rcov.RcovPublisher>
|
94
|
-
</publishers>
|
95
|
-
<buildWrappers>
|
96
|
-
<hudson.plugins.ansicolor.AnsiColorBuildWrapper>
|
97
|
-
<colorMapName>xterm</colorMapName>
|
98
|
-
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
|
99
|
-
<org.jfrog.hudson.generic.ArtifactoryGenericConfigurator>
|
100
|
-
<details>
|
101
|
-
<artifactoryUrl>https://artifactory.com/artifactory</artifactoryUrl>
|
102
|
-
<artifactoryName>key</artifactoryName>
|
103
|
-
<repositoryKey>gems-local</repositoryKey>
|
104
|
-
<snapshotsRepositoryKey>gems-local</snapshotsRepositoryKey>
|
105
|
-
</details>
|
106
|
-
<deployPattern>pkg/*.gem</deployPattern>
|
107
|
-
<resolvePattern/>
|
108
|
-
<matrixParams>foo=bar</matrixParams>
|
109
|
-
<deployBuildInfo>true</deployBuildInfo>
|
110
|
-
<includeEnvVars>false</includeEnvVars>
|
111
|
-
<envVarsPatterns>
|
112
|
-
<includePatterns/>
|
113
|
-
<excludePatterns>*password*,*secret*</excludePatterns>
|
114
|
-
</envVarsPatterns>
|
115
|
-
<discardOldBuilds>false</discardOldBuilds>
|
116
|
-
<discardBuildArtifacts>true</discardBuildArtifacts>
|
117
|
-
</org.jfrog.hudson.generic.ArtifactoryGenericConfigurator>
|
118
|
-
<EnvInjectBuildWrapper>
|
119
|
-
<info>
|
120
|
-
<propertiesContent>VAR1 = value_1</propertiesContent>
|
121
|
-
<loadFilesFromMaster>false</loadFilesFromMaster>
|
122
|
-
</info>
|
123
|
-
</EnvInjectBuildWrapper>
|
124
|
-
<EnvInjectPasswordWrapper>
|
125
|
-
<injectGlobalPasswords>false</injectGlobalPasswords>
|
126
|
-
<passwordEntries>
|
127
|
-
<EnvInjectPasswordEntry>
|
128
|
-
<name>OS_PASSWORD</name>
|
129
|
-
<value>some_encrypted_password</value>
|
130
|
-
</EnvInjectPasswordEntry>
|
131
|
-
</passwordEntries>
|
132
|
-
</EnvInjectPasswordWrapper>
|
133
|
-
<ruby-proxy-object>
|
134
|
-
<ruby-object ruby-class="Jenkins::Plugin::Proxies::BuildWrapper" pluginid="rvm">
|
135
|
-
<object ruby-class="RvmWrapper" pluginid="rvm">
|
136
|
-
<impl pluginid="rvm" ruby-class="String">`cat .ruby-version`@`cat .ruby-gemset`</impl>
|
137
|
-
</object>
|
138
|
-
<pluginid pluginid="rvm" ruby-class="String">rvm</pluginid>
|
139
|
-
</ruby-object>
|
140
|
-
</ruby-proxy-object>
|
141
|
-
</buildWrappers>
|
142
|
-
</project>
|
@@ -1,43 +0,0 @@
|
|
1
|
-
- job:
|
2
|
-
name: 'Job-Gem-Build'
|
3
|
-
job_type: free_style
|
4
|
-
scm_provider: git
|
5
|
-
scm_url: git@github.com:devops/repo.git
|
6
|
-
scm_branch: master
|
7
|
-
scm_params:
|
8
|
-
excluded_users: user
|
9
|
-
shell_command: 'run.sh'
|
10
|
-
triggers:
|
11
|
-
- scm_polling: 'H/5 * * * *'
|
12
|
-
wrappers:
|
13
|
-
- ansicolor: true
|
14
|
-
- artifactory:
|
15
|
-
url: 'https://artifactory.com/artifactory'
|
16
|
-
artifactory-name: 'key'
|
17
|
-
release-repo: gems-local
|
18
|
-
publish: 'pkg/*.gem'
|
19
|
-
publish-build-info: true
|
20
|
-
properties: foo=bar
|
21
|
-
- inject_env_var:
|
22
|
-
content: |
|
23
|
-
VAR1 = value_1
|
24
|
-
- inject_passwords:
|
25
|
-
- name: OS_PASSWORD
|
26
|
-
value: some_encrypted_password
|
27
|
-
- rvm: "`cat .ruby-version`@`cat .ruby-gemset`"
|
28
|
-
publishers:
|
29
|
-
- junit_result:
|
30
|
-
test_results: 'out/**/*.xml'
|
31
|
-
- git:
|
32
|
-
push-merge: true
|
33
|
-
push-only-if-success: false
|
34
|
-
- coverage_result:
|
35
|
-
report_dir: out/coverage/rcov
|
36
|
-
total:
|
37
|
-
healthy: 80
|
38
|
-
unhealthy: 0
|
39
|
-
unstable: 0
|
40
|
-
code:
|
41
|
-
healthy: 80
|
42
|
-
unhealthy: 0
|
43
|
-
unstable: 0
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project>
|
3
|
-
<actions/>
|
4
|
-
<description>Do not edit this job through the web!</description>
|
5
|
-
<keepDependencies>false</keepDependencies>
|
6
|
-
<properties>
|
7
|
-
<hudson.model.ParametersDefinitionProperty>
|
8
|
-
<parameterDefinitions>
|
9
|
-
<hudson.model.StringParameterDefinition>
|
10
|
-
<name>param1</name>
|
11
|
-
<description>Some description</description>
|
12
|
-
<defaultValue></defaultValue>
|
13
|
-
</hudson.model.StringParameterDefinition>
|
14
|
-
</parameterDefinitions>
|
15
|
-
</hudson.model.ParametersDefinitionProperty>
|
16
|
-
</properties>
|
17
|
-
<scm class="hudson.scm.NullSCM"/>
|
18
|
-
<canRoam>true</canRoam>
|
19
|
-
<disabled>false</disabled>
|
20
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
21
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
22
|
-
<triggers class="vector"/>
|
23
|
-
<concurrentBuild>false</concurrentBuild>
|
24
|
-
<builders>
|
25
|
-
<hudson.tasks.Shell>
|
26
|
-
<command>run.sh
|
27
|
-
</command>
|
28
|
-
</hudson.tasks.Shell>
|
29
|
-
</builders>
|
30
|
-
<publishers/>
|
31
|
-
<buildWrappers/>
|
32
|
-
</project>
|
@@ -1,134 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<com.tikal.jenkins.plugins.multijob.MultiJobProject>
|
3
|
-
<actions/>
|
4
|
-
<description/>
|
5
|
-
<keepDependencies>false</keepDependencies>
|
6
|
-
<properties>
|
7
|
-
<hudson.model.ParametersDefinitionProperty>
|
8
|
-
<parameterDefinitions>
|
9
|
-
<hudson.model.StringParameterDefinition>
|
10
|
-
<name>Param1</name>
|
11
|
-
<description>The git branch to be used when building application</description>
|
12
|
-
<defaultValue>release</defaultValue>
|
13
|
-
</hudson.model.StringParameterDefinition>
|
14
|
-
</parameterDefinitions>
|
15
|
-
</hudson.model.ParametersDefinitionProperty>
|
16
|
-
</properties>
|
17
|
-
<scm class="hudson.plugins.git.GitSCM">
|
18
|
-
<configVersion>2</configVersion>
|
19
|
-
<userRemoteConfigs>
|
20
|
-
<hudson.plugins.git.UserRemoteConfig>
|
21
|
-
<name/>
|
22
|
-
<refspec/>
|
23
|
-
<url>git@github:org/repo</url>
|
24
|
-
</hudson.plugins.git.UserRemoteConfig>
|
25
|
-
</userRemoteConfigs>
|
26
|
-
<branches>
|
27
|
-
<hudson.plugins.git.BranchSpec>
|
28
|
-
<name>release</name>
|
29
|
-
</hudson.plugins.git.BranchSpec>
|
30
|
-
</branches>
|
31
|
-
<disableSubmodules>false</disableSubmodules>
|
32
|
-
<recursiveSubmodules>true</recursiveSubmodules>
|
33
|
-
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
34
|
-
<authorOrCommitter>false</authorOrCommitter>
|
35
|
-
<clean>false</clean>
|
36
|
-
<wipeOutWorkspace>true</wipeOutWorkspace>
|
37
|
-
<pruneBranches>false</pruneBranches>
|
38
|
-
<remotePoll>false</remotePoll>
|
39
|
-
<ignoreNotifyCommit>false</ignoreNotifyCommit>
|
40
|
-
<useShallowClone>false</useShallowClone>
|
41
|
-
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
|
42
|
-
<gitTool>Default</gitTool>
|
43
|
-
<submoduleCfg class="list"/>
|
44
|
-
<relativeTargetDir/>
|
45
|
-
<reference/>
|
46
|
-
<excludedRegions/>
|
47
|
-
<excludedUsers>user</excludedUsers>
|
48
|
-
<gitConfigName/>
|
49
|
-
<gitConfigEmail/>
|
50
|
-
<skipTag>true</skipTag>
|
51
|
-
<includedRegions/>
|
52
|
-
<scmName/>
|
53
|
-
<localBranch>${GIT_BRANCH}</localBranch>
|
54
|
-
</scm>
|
55
|
-
<canRoam>true</canRoam>
|
56
|
-
<disabled>false</disabled>
|
57
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
58
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
59
|
-
<triggers class="vector">
|
60
|
-
<com.cloudbees.jenkins.GitHubPushTrigger>
|
61
|
-
<spec/>
|
62
|
-
</com.cloudbees.jenkins.GitHubPushTrigger>
|
63
|
-
<hudson.triggers.SCMTrigger>
|
64
|
-
<spec>H/5 * * * *</spec>
|
65
|
-
<ignorePostCommitHooks>false</ignorePostCommitHooks>
|
66
|
-
</hudson.triggers.SCMTrigger>
|
67
|
-
</triggers>
|
68
|
-
<concurrentBuild>false</concurrentBuild>
|
69
|
-
<builders>
|
70
|
-
<com.tikal.jenkins.plugins.multijob.MultiJobBuilder>
|
71
|
-
<phaseName>Phase One</phaseName>
|
72
|
-
<phaseJobs>
|
73
|
-
<com.tikal.jenkins.plugins.multijob.PhaseJobsConfig>
|
74
|
-
<jobName>first</jobName>
|
75
|
-
<currParams>true</currParams>
|
76
|
-
<exposedSCM>true</exposedSCM>
|
77
|
-
<configs>
|
78
|
-
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
79
|
-
<properties>GIT_COMMIT=123
|
80
|
-
PARENT_WORKSPACE=${WORKSPACE}</properties>
|
81
|
-
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
82
|
-
</configs>
|
83
|
-
</com.tikal.jenkins.plugins.multijob.PhaseJobsConfig>
|
84
|
-
<com.tikal.jenkins.plugins.multijob.PhaseJobsConfig>
|
85
|
-
<jobName>second</jobName>
|
86
|
-
<currParams>false</currParams>
|
87
|
-
<exposedSCM>false</exposedSCM>
|
88
|
-
</com.tikal.jenkins.plugins.multijob.PhaseJobsConfig>
|
89
|
-
</phaseJobs>
|
90
|
-
<continuationCondition>COMPLETED</continuationCondition>
|
91
|
-
</com.tikal.jenkins.plugins.multijob.MultiJobBuilder>
|
92
|
-
<com.tikal.jenkins.plugins.multijob.MultiJobBuilder>
|
93
|
-
<phaseName>Phase Two</phaseName>
|
94
|
-
<phaseJobs>
|
95
|
-
<com.tikal.jenkins.plugins.multijob.PhaseJobsConfig>
|
96
|
-
<jobName>third</jobName>
|
97
|
-
<currParams>false</currParams>
|
98
|
-
<exposedSCM>false</exposedSCM>
|
99
|
-
</com.tikal.jenkins.plugins.multijob.PhaseJobsConfig>
|
100
|
-
</phaseJobs>
|
101
|
-
<continuationCondition>SUCCESSFUL</continuationCondition>
|
102
|
-
</com.tikal.jenkins.plugins.multijob.MultiJobBuilder>
|
103
|
-
<EnvInjectBuilder>
|
104
|
-
<info>
|
105
|
-
<propertiesFilePath>build_job_info</propertiesFilePath>
|
106
|
-
</info>
|
107
|
-
</EnvInjectBuilder>
|
108
|
-
</builders>
|
109
|
-
<publishers>
|
110
|
-
<hudson.plugins.parameterizedtrigger.BuildTrigger>
|
111
|
-
<configs>
|
112
|
-
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
|
113
|
-
<configs>
|
114
|
-
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
115
|
-
<properties>PARAM1=value1
|
116
|
-
PARAM2=value2
|
117
|
-
</properties>
|
118
|
-
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
119
|
-
<hudson.plugins.parameterizedtrigger.FileBuildParameters>
|
120
|
-
<propertiesFile>promote-job-params</propertiesFile>
|
121
|
-
<failTriggerOnMissing>false</failTriggerOnMissing>
|
122
|
-
</hudson.plugins.parameterizedtrigger.FileBuildParameters>
|
123
|
-
</configs>
|
124
|
-
<projects>Downstream-Job</projects>
|
125
|
-
<condition>SUCCESS</condition>
|
126
|
-
<triggerWithNoParameters>false</triggerWithNoParameters>
|
127
|
-
</hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
|
128
|
-
</configs>
|
129
|
-
</hudson.plugins.parameterizedtrigger.BuildTrigger>
|
130
|
-
</publishers>
|
131
|
-
<buildWrappers>
|
132
|
-
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper"/>
|
133
|
-
</buildWrappers>
|
134
|
-
</com.tikal.jenkins.plugins.multijob.MultiJobProject>
|
@@ -1,49 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- job:
|
3
|
-
name: Job-Multi-Project
|
4
|
-
job_type: multi_project
|
5
|
-
parameters:
|
6
|
-
- name: Param1
|
7
|
-
type: string
|
8
|
-
default: release
|
9
|
-
description: The git branch to be used when building application
|
10
|
-
scm_provider: git
|
11
|
-
scm_url: git@github:org/repo
|
12
|
-
scm_branch: release
|
13
|
-
scm_params:
|
14
|
-
local_branch: ${GIT_BRANCH}
|
15
|
-
recursive_update: true
|
16
|
-
wipe_workspace: true
|
17
|
-
excluded_users: user
|
18
|
-
skip_tag: true
|
19
|
-
triggers:
|
20
|
-
- git_push: true
|
21
|
-
- scm_polling: "H/5 * * * *"
|
22
|
-
builders:
|
23
|
-
- multi_job:
|
24
|
-
phases:
|
25
|
-
"Phase One":
|
26
|
-
jobs:
|
27
|
-
- name: first
|
28
|
-
exposed_scm: true
|
29
|
-
current_params: true
|
30
|
-
config:
|
31
|
-
predefined_build_parameters:
|
32
|
-
- 'GIT_COMMIT=123'
|
33
|
-
- "PARENT_WORKSPACE=${WORKSPACE}"
|
34
|
-
- name: second
|
35
|
-
continue_condition: COMPLETED
|
36
|
-
"Phase Two":
|
37
|
-
jobs:
|
38
|
-
- name: third
|
39
|
-
- inject_vars_file: build_job_info
|
40
|
-
publishers:
|
41
|
-
- downstream:
|
42
|
-
project: Downstream-Job
|
43
|
-
data:
|
44
|
-
- params: |
|
45
|
-
PARAM1=value1
|
46
|
-
PARAM2=value2
|
47
|
-
- file: promote-job-params
|
48
|
-
wrappers:
|
49
|
-
- timestamp: true
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project>
|
3
|
-
<actions/>
|
4
|
-
<description/>
|
5
|
-
<keepDependencies>false</keepDependencies>
|
6
|
-
<properties/>
|
7
|
-
<scm class="hudson.scm.NullSCM"/>
|
8
|
-
<canRoam>true</canRoam>
|
9
|
-
<disabled>false</disabled>
|
10
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
11
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
12
|
-
<triggers class="vector"/>
|
13
|
-
<concurrentBuild>false</concurrentBuild>
|
14
|
-
<builders/>
|
15
|
-
<publishers>
|
16
|
-
<hudson.tasks.ArtifactArchiver>
|
17
|
-
<artifacts>artifact.txt</artifacts>
|
18
|
-
<latestOnly>false</latestOnly>
|
19
|
-
<allowEmptyArchive>false</allowEmptyArchive>
|
20
|
-
</hudson.tasks.ArtifactArchiver>
|
21
|
-
</publishers>
|
22
|
-
<buildWrappers/>
|
23
|
-
</project>
|