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,40 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright (c) 2014 Constant Contact
|
3
|
-
#
|
4
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
# of this software and associated documentation files (the "Software"), to deal
|
6
|
-
# in the Software without restriction, including without limitation the rights
|
7
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
# copies of the Software, and to permit persons to whom the Software is
|
9
|
-
# furnished to do so, subject to the following conditions:
|
10
|
-
#
|
11
|
-
# The above copyright notice and this permission notice shall be included in
|
12
|
-
# all copies or substantial portions of the Software.
|
13
|
-
#
|
14
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
-
# THE SOFTWARE.
|
21
|
-
#
|
22
|
-
|
23
|
-
module JenkinsPipelineBuilder
|
24
|
-
class XmlHelper
|
25
|
-
def self.update_node_text(n_xml, path, value)
|
26
|
-
n_node = n_xml.xpath(path).first
|
27
|
-
if n_node.nil?
|
28
|
-
left, right = path.match(%r{^(.*)/([^/]*)$}).captures
|
29
|
-
parent_node = n_xml.xpath(left).first
|
30
|
-
Nokogiri::XML::Builder.with(parent_node) do |xml|
|
31
|
-
xml.send(right) do
|
32
|
-
xml.text value
|
33
|
-
end
|
34
|
-
end
|
35
|
-
else
|
36
|
-
n_node.content = value
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'logger'
|
2
|
-
require 'rspec'
|
3
|
-
|
4
|
-
require 'simplecov'
|
5
|
-
require 'simplecov-rcov'
|
6
|
-
|
7
|
-
SimpleCov.start if ENV['COVERAGE']
|
8
|
-
|
9
|
-
require File.expand_path('../../../lib/jenkins_pipeline_builder', __FILE__)
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
13
|
-
config.run_all_when_everything_filtered = true
|
14
|
-
config.filter_run_excluding broken: true
|
15
|
-
|
16
|
-
config.before(:each) do
|
17
|
-
end
|
18
|
-
end
|
@@ -1,90 +0,0 @@
|
|
1
|
-
require File.expand_path('../spec_helper', __FILE__)
|
2
|
-
|
3
|
-
describe JenkinsPipelineBuilder::View do
|
4
|
-
context 'With properly initialized client' do
|
5
|
-
before(:all) do
|
6
|
-
@creds_file = '~/.jenkins_api_client/login.yml'
|
7
|
-
@valid_post_responses = [200, 201, 302]
|
8
|
-
begin
|
9
|
-
JenksinPipelineBuilder.credentials = YAML.load_file(File.expand_path(@creds_file, __FILE__))
|
10
|
-
@generator = JenkinsPipelineBuilder.generator
|
11
|
-
@generator.no_files = true
|
12
|
-
rescue StandardError => e
|
13
|
-
puts 'WARNING: Credentials are not set properly.'
|
14
|
-
puts e.message
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'InstanceMethods' do
|
19
|
-
describe '#create' do
|
20
|
-
def create_and_validate(params)
|
21
|
-
name = params[:name]
|
22
|
-
@valid_post_responses.should include(
|
23
|
-
@generator.view.create(params).to_i
|
24
|
-
)
|
25
|
-
@generator.view.list_children(params[:parent_view], name).include?(name).should be_true
|
26
|
-
end
|
27
|
-
|
28
|
-
def destroy_and_validate(params)
|
29
|
-
name = params[:name]
|
30
|
-
@valid_post_responses.should include(
|
31
|
-
@generator.view.delete(name, params[:parent_view]).to_i
|
32
|
-
)
|
33
|
-
@generator.view.list_children(params[:parent_view], name).include?(name).should be_false
|
34
|
-
end
|
35
|
-
|
36
|
-
def test_and_validate(params)
|
37
|
-
create_and_validate(params)
|
38
|
-
destroy_and_validate(params)
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'accepts the name of the view and creates the view' do
|
42
|
-
params = {
|
43
|
-
name: 'test_list_view'
|
44
|
-
}
|
45
|
-
|
46
|
-
test_and_validate(params)
|
47
|
-
end
|
48
|
-
|
49
|
-
it 'creates a Nested view with a child' do
|
50
|
-
params_parent = {
|
51
|
-
name: 'My Test Parent View',
|
52
|
-
type: 'nestedView'
|
53
|
-
}
|
54
|
-
|
55
|
-
create_and_validate(params_parent)
|
56
|
-
|
57
|
-
params_child = {
|
58
|
-
name: 'Test List View',
|
59
|
-
parent_view: params_parent[:name]
|
60
|
-
}
|
61
|
-
|
62
|
-
test_and_validate(params_child)
|
63
|
-
|
64
|
-
destroy_and_validate(params_parent)
|
65
|
-
end
|
66
|
-
|
67
|
-
it 'creates a categorized view with columns' do
|
68
|
-
params = {
|
69
|
-
name: 'test_category_view',
|
70
|
-
type: 'categorizedView',
|
71
|
-
description: 'Blah blah',
|
72
|
-
regex: 'Job-.*',
|
73
|
-
groupingRules: [{
|
74
|
-
groupRegex: 'Step-1.*',
|
75
|
-
namingRule: '1. Commit'
|
76
|
-
}, {
|
77
|
-
groupRegex: 'Step-2.*',
|
78
|
-
namingRule: '2. Acceptance'
|
79
|
-
}, {
|
80
|
-
groupRegex: 'Step-3.*',
|
81
|
-
namingRule: '3. Release'
|
82
|
-
}]
|
83
|
-
}
|
84
|
-
|
85
|
-
test_and_validate(params)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require File.expand_path('../spec_helper', __FILE__)
|
2
|
-
|
3
|
-
describe 'Compiler' do
|
4
|
-
it 'transforms hash into hash' do
|
5
|
-
hash = {
|
6
|
-
a: 'A sentence',
|
7
|
-
b: 'B sentence',
|
8
|
-
hash: {
|
9
|
-
c: 5,
|
10
|
-
d: true
|
11
|
-
},
|
12
|
-
z: false
|
13
|
-
}
|
14
|
-
|
15
|
-
success, result = JenkinsPipelineBuilder::Compiler.compile(hash)
|
16
|
-
|
17
|
-
expect(success).to be_true
|
18
|
-
result.should == hash
|
19
|
-
end
|
20
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<com.cloudbees.plugins.flow.BuildFlow>
|
3
|
-
<actions/>
|
4
|
-
<description/>
|
5
|
-
<keepDependencies>false</keepDependencies>
|
6
|
-
<properties>
|
7
|
-
<jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty>
|
8
|
-
<room>HipChat Room Name</room>
|
9
|
-
<startNotification>true</startNotification>
|
10
|
-
</jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty>
|
11
|
-
<hudson.model.ParametersDefinitionProperty>
|
12
|
-
<parameterDefinitions>
|
13
|
-
<hudson.model.StringParameterDefinition>
|
14
|
-
<name>param1</name>
|
15
|
-
<description/>
|
16
|
-
<defaultValue/>
|
17
|
-
</hudson.model.StringParameterDefinition>
|
18
|
-
</parameterDefinitions>
|
19
|
-
</hudson.model.ParametersDefinitionProperty>
|
20
|
-
</properties>
|
21
|
-
<scm class="hudson.scm.NullSCM"/>
|
22
|
-
<canRoam>true</canRoam>
|
23
|
-
<disabled>false</disabled>
|
24
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
25
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
26
|
-
<triggers class="vector"/>
|
27
|
-
<concurrentBuild>false</concurrentBuild>
|
28
|
-
<builders/>
|
29
|
-
<publishers>
|
30
|
-
<hudson.plugins.parameterizedtrigger.BuildTrigger>
|
31
|
-
<configs>
|
32
|
-
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
|
33
|
-
<configs>
|
34
|
-
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
35
|
-
<properties/>
|
36
|
-
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
37
|
-
</configs>
|
38
|
-
<projects>project_name</projects>
|
39
|
-
<condition>SUCCESS</condition>
|
40
|
-
<triggerWithNoParameters>false</triggerWithNoParameters>
|
41
|
-
</hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
|
42
|
-
</configs>
|
43
|
-
</hudson.plugins.parameterizedtrigger.BuildTrigger>
|
44
|
-
<jenkins.plugins.hipchat.HipChatNotifier>
|
45
|
-
<jenkinsUrl>https://jenkins_url/</jenkinsUrl>
|
46
|
-
<authToken>auth_token</authToken>
|
47
|
-
<room>room name</room>
|
48
|
-
</jenkins.plugins.hipchat.HipChatNotifier>
|
49
|
-
</publishers>
|
50
|
-
<buildWrappers/>
|
51
|
-
<dsl>guard {
|
52
|
-
build("job_name1", param1: params["param1"]);
|
53
|
-
} rescue {
|
54
|
-
build("job_name2", param1: build21.environment.get("some_var"))
|
55
|
-
}
|
56
|
-
</dsl>
|
57
|
-
</com.cloudbees.plugins.flow.BuildFlow>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- job:
|
3
|
-
name: Job-Build-Flow
|
4
|
-
job_type: build_flow
|
5
|
-
hipchat:
|
6
|
-
room: 'HipChat Room Name'
|
7
|
-
start-notify: true
|
8
|
-
parameters:
|
9
|
-
- name: param1
|
10
|
-
publishers:
|
11
|
-
- downstream:
|
12
|
-
project: project_name
|
13
|
-
- hipchat:
|
14
|
-
jenkinsUrl: 'https://jenkins_url/'
|
15
|
-
authToken: 'auth_token'
|
16
|
-
room: 'room name'
|
17
|
-
build_flow: |
|
18
|
-
guard {
|
19
|
-
build("job_name1", param1: params["param1"]);
|
20
|
-
} rescue {
|
21
|
-
build("job_name2", param1: build21.environment.get("some_var"))
|
22
|
-
}
|
@@ -1,129 +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>release</name>
|
19
|
-
</hudson.plugins.git.BranchSpec>
|
20
|
-
</branches>
|
21
|
-
<localBranch>release</localBranch>
|
22
|
-
<disableSubmodules>false</disableSubmodules>
|
23
|
-
<recursiveSubmodules>false</recursiveSubmodules>
|
24
|
-
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
25
|
-
<authorOrCommitter>false</authorOrCommitter>
|
26
|
-
<clean>false</clean>
|
27
|
-
<wipeOutWorkspace>true</wipeOutWorkspace>
|
28
|
-
<pruneBranches>false</pruneBranches>
|
29
|
-
<remotePoll>false</remotePoll>
|
30
|
-
<ignoreNotifyCommit>false</ignoreNotifyCommit>
|
31
|
-
<useShallowClone>false</useShallowClone>
|
32
|
-
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
|
33
|
-
<gitTool>Default</gitTool>
|
34
|
-
<submoduleCfg class="list"/>
|
35
|
-
<relativeTargetDir/>
|
36
|
-
<reference/>
|
37
|
-
<excludedRegions/>
|
38
|
-
<excludedUsers>user</excludedUsers>
|
39
|
-
<gitConfigName/>
|
40
|
-
<gitConfigEmail/>
|
41
|
-
<skipTag>false</skipTag>
|
42
|
-
<includedRegions/>
|
43
|
-
<scmName/>
|
44
|
-
</scm>
|
45
|
-
<canRoam>true</canRoam>
|
46
|
-
<disabled>false</disabled>
|
47
|
-
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
48
|
-
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
49
|
-
<triggers class="vector"/>
|
50
|
-
<concurrentBuild>false</concurrentBuild>
|
51
|
-
<builders>
|
52
|
-
<hudson.tasks.Shell>
|
53
|
-
<command>echo 'Doing some work'
|
54
|
-
run command1
|
55
|
-
</command>
|
56
|
-
</hudson.tasks.Shell>
|
57
|
-
<org.jfrog.hudson.maven3.Maven3Builder>
|
58
|
-
<mavenName>tools-maven-3.0.3</mavenName>
|
59
|
-
<rootPom/>
|
60
|
-
<goals>-B clean</goals>
|
61
|
-
<mavenOpts/>
|
62
|
-
</org.jfrog.hudson.maven3.Maven3Builder>
|
63
|
-
</builders>
|
64
|
-
<publishers>
|
65
|
-
<hudson.plugins.descriptionsetter.DescriptionSetterPublisher>
|
66
|
-
<regexp>See the QE build details at (.*)</regexp>
|
67
|
-
<regexpForFailed>See the QE build details at (.*)</regexpForFailed>
|
68
|
-
<description>QE Build Details: <a href="\1">\1</a></description>
|
69
|
-
<descriptionForFailed>QE Build Details: <a href="\1">\1</a></descriptionForFailed>
|
70
|
-
<setForMatrix>false</setForMatrix>
|
71
|
-
</hudson.plugins.descriptionsetter.DescriptionSetterPublisher>
|
72
|
-
<hudson.plugins.parameterizedtrigger.BuildTrigger>
|
73
|
-
<configs>
|
74
|
-
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
|
75
|
-
<configs>
|
76
|
-
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
77
|
-
<properties>VM_NAME=${VM_NAME}</properties>
|
78
|
-
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
79
|
-
</configs>
|
80
|
-
<projects>project_name</projects>
|
81
|
-
<condition>SUCCESS</condition>
|
82
|
-
<triggerWithNoParameters>false</triggerWithNoParameters>
|
83
|
-
</hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
|
84
|
-
</configs>
|
85
|
-
</hudson.plugins.parameterizedtrigger.BuildTrigger>
|
86
|
-
</publishers>
|
87
|
-
<buildWrappers>
|
88
|
-
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper"/>
|
89
|
-
<org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator>
|
90
|
-
<details>
|
91
|
-
<artifactoryUrl>https://artifactory.com/artifactory</artifactoryUrl>
|
92
|
-
<artifactoryName>name</artifactoryName>
|
93
|
-
<repositoryKey>release</repositoryKey>
|
94
|
-
<snapshotsRepositoryKey>snapshot</snapshotsRepositoryKey>
|
95
|
-
</details>
|
96
|
-
<deployArtifacts>true</deployArtifacts>
|
97
|
-
<artifactDeploymentPatterns>
|
98
|
-
<includePatterns></includePatterns>
|
99
|
-
<excludePatterns></excludePatterns>
|
100
|
-
</artifactDeploymentPatterns>
|
101
|
-
<includeEnvVars>false</includeEnvVars>
|
102
|
-
<deployBuildInfo>true</deployBuildInfo>
|
103
|
-
<envVarsPatterns>
|
104
|
-
<includePatterns></includePatterns>
|
105
|
-
<excludePatterns>*password*,*secret*</excludePatterns>
|
106
|
-
</envVarsPatterns>
|
107
|
-
<runChecks>false</runChecks>
|
108
|
-
<violationRecipients></violationRecipients>
|
109
|
-
<includePublishArtifacts>false</includePublishArtifacts>
|
110
|
-
<scopes></scopes>
|
111
|
-
<licenseAutoDiscovery>true</licenseAutoDiscovery>
|
112
|
-
<disableLicenseAutoDiscovery>false</disableLicenseAutoDiscovery>
|
113
|
-
<discardOldBuilds>false</discardOldBuilds>
|
114
|
-
<discardBuildArtifacts>true</discardBuildArtifacts>
|
115
|
-
<matrixParams></matrixParams>
|
116
|
-
<enableIssueTrackerIntegration>false</enableIssueTrackerIntegration>
|
117
|
-
<aggregateBuildIssues>false</aggregateBuildIssues>
|
118
|
-
<blackDuckRunChecks>false</blackDuckRunChecks>
|
119
|
-
<blackDuckAppName></blackDuckAppName>
|
120
|
-
<blackDuckAppVersion></blackDuckAppVersion>
|
121
|
-
<blackDuckReportRecipients></blackDuckReportRecipients>
|
122
|
-
<blackDuckScopes></blackDuckScopes>
|
123
|
-
<blackDuckIncludePublishedArtifacts>false</blackDuckIncludePublishedArtifacts>
|
124
|
-
<autoCreateMissingComponentRequests>true</autoCreateMissingComponentRequests>
|
125
|
-
<autoDiscardStaleComponentRequests>true</autoDiscardStaleComponentRequests>
|
126
|
-
<filterExcludedArtifactsFromBuild>false</filterExcludedArtifactsFromBuild>
|
127
|
-
</org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator>
|
128
|
-
</buildWrappers>
|
129
|
-
</project>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- job:
|
3
|
-
name: Job-Build-Maven
|
4
|
-
scm_provider: git
|
5
|
-
scm_url: git@github.com:devops/repo.git
|
6
|
-
scm_branch: release
|
7
|
-
scm_params:
|
8
|
-
local_branch: release
|
9
|
-
wipe_workspace: true
|
10
|
-
excluded_users: user
|
11
|
-
builders:
|
12
|
-
- shell_command: |
|
13
|
-
echo 'Doing some work'
|
14
|
-
run command1
|
15
|
-
- maven3:
|
16
|
-
goals: -B clean
|
17
|
-
publishers:
|
18
|
-
- description_setter:
|
19
|
-
regexp: See the QE build details at (.*)
|
20
|
-
description: 'QE Build Details: <a href="\1">\1</a>'
|
21
|
-
- downstream:
|
22
|
-
project: project_name
|
23
|
-
data:
|
24
|
-
- params: VM_NAME=${VM_NAME}
|
25
|
-
wrappers:
|
26
|
-
- timestamp: true
|
27
|
-
- maven3artifactory:
|
28
|
-
url: https://artifactory.com/artifactory
|
29
|
-
artifactory-name: name
|
30
|
-
release-repo: release
|
31
|
-
snapshot-repo: snapshot
|
@@ -1,27 +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
|
-
<scriptText>job {
|
17
|
-
name 'DSL-Job'
|
18
|
-
}
|
19
|
-
</scriptText>
|
20
|
-
<usingScriptText>true</usingScriptText>
|
21
|
-
<ignoreExisting>false</ignoreExisting>
|
22
|
-
<removedJobAction>IGNORE</removedJobAction>
|
23
|
-
</javaposse.jobdsl.plugin.ExecuteDslScripts>
|
24
|
-
</builders>
|
25
|
-
<publishers/>
|
26
|
-
<buildWrappers/>
|
27
|
-
</project>
|