sbci 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/.rspec +1 -0
- data/Gemfile +3 -0
- data/Guardfile +19 -0
- data/LICENSE +22 -0
- data/README.md +28 -0
- data/Rakefile +2 -0
- data/bin/sbci +51 -0
- data/lib/config.xml +103 -0
- data/lib/sbci.rb +145 -0
- data/lib/sbci/version.rb +3 -0
- data/sbci.gemspec +29 -0
- data/spec/.DS_Store +0 -0
- data/spec/fixtures/vcr_cassettes/delete.yml +42 -0
- data/spec/fixtures/vcr_cassettes/dump.yml +78 -0
- data/spec/fixtures/vcr_cassettes/publish.yml +160 -0
- data/spec/fixtures/vcr_cassettes/republish.yml +232 -0
- data/spec/sbci_cli_spec.rb +21 -0
- data/spec/sbci_spec.rb +151 -0
- data/spec/spec_helper.rb +12 -0
- metadata +190 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Winstone Servlet Engine v0.9.10
|
23
|
+
Content-Type:
|
24
|
+
- application/xml
|
25
|
+
Connection:
|
26
|
+
- Close
|
27
|
+
Date:
|
28
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
29
|
+
X-Powered-By:
|
30
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?><project>\n <actions/>\n
|
34
|
+
\ <description>_PROJECT_NAME_</description>\n <logRotator>\n <daysToKeep>1</daysToKeep>\n
|
35
|
+
\ <numToKeep>5</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n
|
36
|
+
\ <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n
|
37
|
+
\ <properties>\n <com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
38
|
+
\ <projectUrl>_PROJECT_URL_</projectUrl>\n </com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
39
|
+
\ </properties>\n <scm class=\"hudson.plugins.git.GitSCM\">\n <configVersion>2</configVersion>\n
|
40
|
+
\ <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n <name/>\n
|
41
|
+
\ <refspec/>\n <url>_GIT_REPO_</url>\n </hudson.plugins.git.UserRemoteConfig>\n
|
42
|
+
\ </userRemoteConfigs>\n <branches>\n <hudson.plugins.git.BranchSpec>\n
|
43
|
+
\ <name>_BRANCH_NAME_</name>\n </hudson.plugins.git.BranchSpec>\n
|
44
|
+
\ </branches>\n <disableSubmodules>false</disableSubmodules>\n <recursiveSubmodules>false</recursiveSubmodules>\n
|
45
|
+
\ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n
|
46
|
+
\ <authorOrCommitter>false</authorOrCommitter>\n <clean>false</clean>\n
|
47
|
+
\ <wipeOutWorkspace>false</wipeOutWorkspace>\n <pruneBranches>false</pruneBranches>\n
|
48
|
+
\ <remotePoll>false</remotePoll>\n <ignoreNotifyCommit>false</ignoreNotifyCommit>\n
|
49
|
+
\ <buildChooser class=\"hudson.plugins.git.util.DefaultBuildChooser\"/>\n
|
50
|
+
\ <gitTool>Default</gitTool>\n <submoduleCfg class=\"list\"/>\n <relativeTargetDir/>\n
|
51
|
+
\ <reference/>\n <excludedRegions/>\n <excludedUsers/>\n <gitConfigName/>\n
|
52
|
+
\ <gitConfigEmail/>\n <skipTag>false</skipTag>\n <includedRegions/>\n
|
53
|
+
\ <scmName/>\n </scm>\n <canRoam>true</canRoam>\n <disabled>false</disabled>\n
|
54
|
+
\ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n
|
55
|
+
\ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n
|
56
|
+
\ <triggers class=\"vector\">\n <com.cloudbees.jenkins.GitHubPushTrigger>\n
|
57
|
+
\ <spec/>\n </com.cloudbees.jenkins.GitHubPushTrigger>\n <hudson.triggers.SCMTrigger>\n
|
58
|
+
\ <spec>* * * * *</spec>\n </hudson.triggers.SCMTrigger>\n </triggers>\n
|
59
|
+
\ <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n
|
60
|
+
\ <command>rvm --force gemset empty _PROJECT_NAME_ && bundle install</command>\n
|
61
|
+
\ </hudson.tasks.Shell>\n <hudson.tasks.Shell>\n <command>bundle
|
62
|
+
exec rspec spec --format html -o doc/rspec.html</command>\n </hudson.tasks.Shell>\n
|
63
|
+
\ </builders>\n <publishers>\n <hudson.tasks.ArtifactArchiver>\n <artifacts>doc/*html</artifacts>\n
|
64
|
+
\ <latestOnly>false</latestOnly>\n </hudson.tasks.ArtifactArchiver>\n
|
65
|
+
\ <htmlpublisher.HtmlPublisher>\n <reportTargets>\n <htmlpublisher.HtmlPublisherTarget>\n
|
66
|
+
\ <reportName>Rspec Report</reportName>\n <reportDir>doc</reportDir>\n
|
67
|
+
\ <reportFiles>rspec.html</reportFiles>\n <keepAll>true</keepAll>\n
|
68
|
+
\ <wrapperName>htmlpublisher-wrapper.html</wrapperName>\n </htmlpublisher.HtmlPublisherTarget>\n
|
69
|
+
\ </reportTargets>\n </htmlpublisher.HtmlPublisher>\n <hudson.plugins.claim.ClaimPublisher/>\n
|
70
|
+
\ </publishers>\n <buildWrappers>\n <hudson.plugins.ansicolor.AnsiColorBuildWrapper/>\n
|
71
|
+
\ <ruby-proxy-object>\n <ruby-object ruby-class=\"Jenkins::Plugin::Proxies::BuildWrapper\"
|
72
|
+
pluginid=\"rvm\">\n <object ruby-class=\"RvmWrapper\" pluginid=\"rvm\">\n
|
73
|
+
\ <impl pluginid=\"rvm\" ruby-class=\"String\">1.9.2-p290@_PROJECT_NAME_</impl>\n
|
74
|
+
\ </object>\n <pluginid pluginid=\"rvm\" ruby-class=\"String\">rvm</pluginid>\n
|
75
|
+
\ </ruby-object>\n </ruby-proxy-object>\n </buildWrappers>\n</project>"
|
76
|
+
http_version: !!null
|
77
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
78
|
+
recorded_with: VCR 2.2.1
|
@@ -0,0 +1,160 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Winstone Servlet Engine v0.9.10
|
23
|
+
Content-Length:
|
24
|
+
- '263'
|
25
|
+
Connection:
|
26
|
+
- Keep-Alive
|
27
|
+
Content-Type:
|
28
|
+
- text/html;charset=ISO-8859-1
|
29
|
+
Date:
|
30
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
31
|
+
X-Powered-By:
|
32
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ! '<html><head><title>Error 404</title></head><body bgcolor="#ffffff"><h1>Status
|
36
|
+
Code: 404</h1>Exception: <br>Stacktrace: <pre>(none)
|
37
|
+
|
38
|
+
</pre><br><hr size="1" width="90%"><i>Generated by Winstone Servlet Engine
|
39
|
+
v0.9.10 at Mon Jul 02 12:49:49 BST 2012</i></body></html>'
|
40
|
+
http_version: !!null
|
41
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ''
|
48
|
+
headers:
|
49
|
+
Accept:
|
50
|
+
- ! '*/*; q=0.5, application/xml'
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip, deflate
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 404
|
58
|
+
message: Not Found
|
59
|
+
headers:
|
60
|
+
Server:
|
61
|
+
- Winstone Servlet Engine v0.9.10
|
62
|
+
Content-Length:
|
63
|
+
- '263'
|
64
|
+
Connection:
|
65
|
+
- Keep-Alive
|
66
|
+
Content-Type:
|
67
|
+
- text/html;charset=ISO-8859-1
|
68
|
+
Date:
|
69
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
70
|
+
X-Powered-By:
|
71
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
72
|
+
body:
|
73
|
+
encoding: US-ASCII
|
74
|
+
string: ! '<html><head><title>Error 404</title></head><body bgcolor="#ffffff"><h1>Status
|
75
|
+
Code: 404</h1>Exception: <br>Stacktrace: <pre>(none)
|
76
|
+
|
77
|
+
</pre><br><hr size="1" width="90%"><i>Generated by Winstone Servlet Engine
|
78
|
+
v0.9.10 at Mon Jul 02 12:49:49 BST 2012</i></body></html>'
|
79
|
+
http_version: !!null
|
80
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
81
|
+
- request:
|
82
|
+
method: post
|
83
|
+
uri: http://localhost:8080/createItem?name=test_job
|
84
|
+
body:
|
85
|
+
encoding: ASCII-8BIT
|
86
|
+
string: ! "<?xml version='1.0' encoding='UTF-8'?>\n<project>\n <actions/>\n
|
87
|
+
\ <description>_PROJECT_NAME_</description>\n <logRotator>\n <daysToKeep>1</daysToKeep>\n
|
88
|
+
\ <numToKeep>5</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n
|
89
|
+
\ <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n
|
90
|
+
\ <properties>\n <com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
91
|
+
\ <projectUrl>_PROJECT_URL_</projectUrl>\n </com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
92
|
+
\ </properties>\n <scm class=\"hudson.plugins.git.GitSCM\">\n <configVersion>2</configVersion>\n
|
93
|
+
\ <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n <name></name>\n
|
94
|
+
\ <refspec></refspec>\n <url>_GIT_REPO_</url>\n </hudson.plugins.git.UserRemoteConfig>\n
|
95
|
+
\ </userRemoteConfigs>\n <branches>\n <hudson.plugins.git.BranchSpec>\n
|
96
|
+
\ <name>_BRANCH_NAME_</name>\n </hudson.plugins.git.BranchSpec>\n
|
97
|
+
\ </branches>\n <disableSubmodules>false</disableSubmodules>\n <recursiveSubmodules>false</recursiveSubmodules>\n
|
98
|
+
\ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n
|
99
|
+
\ <authorOrCommitter>false</authorOrCommitter>\n <clean>false</clean>\n
|
100
|
+
\ <wipeOutWorkspace>false</wipeOutWorkspace>\n <pruneBranches>false</pruneBranches>\n
|
101
|
+
\ <remotePoll>false</remotePoll>\n <ignoreNotifyCommit>false</ignoreNotifyCommit>\n
|
102
|
+
\ <buildChooser class=\"hudson.plugins.git.util.DefaultBuildChooser\"/>\n
|
103
|
+
\ <gitTool>Default</gitTool>\n <submoduleCfg class=\"list\"/>\n <relativeTargetDir></relativeTargetDir>\n
|
104
|
+
\ <reference></reference>\n <excludedRegions></excludedRegions>\n <excludedUsers></excludedUsers>\n
|
105
|
+
\ <gitConfigName></gitConfigName>\n <gitConfigEmail></gitConfigEmail>\n
|
106
|
+
\ <skipTag>false</skipTag>\n <includedRegions></includedRegions>\n <scmName></scmName>\n
|
107
|
+
\ </scm>\n <canRoam>true</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n
|
108
|
+
\ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n
|
109
|
+
\ <triggers class=\"vector\">\n <com.cloudbees.jenkins.GitHubPushTrigger>\n
|
110
|
+
\ <spec></spec>\n </com.cloudbees.jenkins.GitHubPushTrigger>\n <hudson.triggers.SCMTrigger>\n
|
111
|
+
\ <spec>* * * * *</spec>\n </hudson.triggers.SCMTrigger>\n </triggers>\n
|
112
|
+
\ <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n
|
113
|
+
\ <command>rvm --force gemset empty _PROJECT_NAME_ && bundle install</command>\n
|
114
|
+
\ </hudson.tasks.Shell>\n <hudson.tasks.Shell>\n <command>bundle
|
115
|
+
exec rspec spec --format html -o doc/rspec.html</command>\n </hudson.tasks.Shell>\n
|
116
|
+
\ </builders>\n <publishers>\n <hudson.tasks.ArtifactArchiver>\n <artifacts>doc/*html</artifacts>\n
|
117
|
+
\ <latestOnly>false</latestOnly>\n </hudson.tasks.ArtifactArchiver>\n
|
118
|
+
\ <htmlpublisher.HtmlPublisher>\n <reportTargets>\n <htmlpublisher.HtmlPublisherTarget>\n
|
119
|
+
\ <reportName>Rspec Report</reportName>\n <reportDir>doc</reportDir>\n
|
120
|
+
\ <reportFiles>rspec.html</reportFiles>\n <keepAll>true</keepAll>\n
|
121
|
+
\ <wrapperName>htmlpublisher-wrapper.html</wrapperName>\n </htmlpublisher.HtmlPublisherTarget>\n
|
122
|
+
\ </reportTargets>\n </htmlpublisher.HtmlPublisher>\n <hudson.plugins.claim.ClaimPublisher/>\n
|
123
|
+
\ </publishers>\n <buildWrappers>\n <hudson.plugins.ansicolor.AnsiColorBuildWrapper/>\n
|
124
|
+
\ <ruby-proxy-object>\n <ruby-object ruby-class=\"Jenkins::Plugin::Proxies::BuildWrapper\"
|
125
|
+
pluginid=\"rvm\">\n <object ruby-class=\"RvmWrapper\" pluginid=\"rvm\">\n
|
126
|
+
\ <impl pluginid=\"rvm\" ruby-class=\"String\">1.9.2-p290@_PROJECT_NAME_</impl>\n
|
127
|
+
\ </object>\n <pluginid pluginid=\"rvm\" ruby-class=\"String\">rvm</pluginid>\n
|
128
|
+
\ </ruby-object>\n </ruby-proxy-object>\n </buildWrappers>\n</project>"
|
129
|
+
headers:
|
130
|
+
Accept:
|
131
|
+
- ! '*/*; q=0.5, application/xml'
|
132
|
+
Accept-Encoding:
|
133
|
+
- gzip, deflate
|
134
|
+
Content-Type:
|
135
|
+
- application/xml
|
136
|
+
Content-Length:
|
137
|
+
- '3806'
|
138
|
+
User-Agent:
|
139
|
+
- Ruby
|
140
|
+
response:
|
141
|
+
status:
|
142
|
+
code: 200
|
143
|
+
message: OK
|
144
|
+
headers:
|
145
|
+
Server:
|
146
|
+
- Winstone Servlet Engine v0.9.10
|
147
|
+
Connection:
|
148
|
+
- Close
|
149
|
+
Content-Type:
|
150
|
+
- text/html;charset=ISO-8859-1
|
151
|
+
Date:
|
152
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
153
|
+
X-Powered-By:
|
154
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
155
|
+
body:
|
156
|
+
encoding: US-ASCII
|
157
|
+
string: ''
|
158
|
+
http_version: !!null
|
159
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
160
|
+
recorded_with: VCR 2.2.1
|
@@ -0,0 +1,232 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Winstone Servlet Engine v0.9.10
|
23
|
+
Content-Type:
|
24
|
+
- application/xml
|
25
|
+
Connection:
|
26
|
+
- Close
|
27
|
+
Date:
|
28
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
29
|
+
X-Powered-By:
|
30
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ! "<?xml version='1.0' encoding='UTF-8'?>\n<project>\n <actions/>\n
|
34
|
+
\ <description>_PROJECT_NAME_</description>\n <logRotator>\n <daysToKeep>1</daysToKeep>\n
|
35
|
+
\ <numToKeep>5</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n
|
36
|
+
\ <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n
|
37
|
+
\ <properties>\n <com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
38
|
+
\ <projectUrl>_PROJECT_URL_</projectUrl>\n </com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
39
|
+
\ </properties>\n <scm class=\"hudson.plugins.git.GitSCM\">\n <configVersion>2</configVersion>\n
|
40
|
+
\ <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n <name></name>\n
|
41
|
+
\ <refspec></refspec>\n <url>_GIT_REPO_</url>\n </hudson.plugins.git.UserRemoteConfig>\n
|
42
|
+
\ </userRemoteConfigs>\n <branches>\n <hudson.plugins.git.BranchSpec>\n
|
43
|
+
\ <name>_BRANCH_NAME_</name>\n </hudson.plugins.git.BranchSpec>\n
|
44
|
+
\ </branches>\n <disableSubmodules>false</disableSubmodules>\n <recursiveSubmodules>false</recursiveSubmodules>\n
|
45
|
+
\ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n
|
46
|
+
\ <authorOrCommitter>false</authorOrCommitter>\n <clean>false</clean>\n
|
47
|
+
\ <wipeOutWorkspace>false</wipeOutWorkspace>\n <pruneBranches>false</pruneBranches>\n
|
48
|
+
\ <remotePoll>false</remotePoll>\n <ignoreNotifyCommit>false</ignoreNotifyCommit>\n
|
49
|
+
\ <buildChooser class=\"hudson.plugins.git.util.DefaultBuildChooser\"/>\n
|
50
|
+
\ <gitTool>Default</gitTool>\n <submoduleCfg class=\"list\"/>\n <relativeTargetDir></relativeTargetDir>\n
|
51
|
+
\ <reference></reference>\n <excludedRegions></excludedRegions>\n <excludedUsers></excludedUsers>\n
|
52
|
+
\ <gitConfigName></gitConfigName>\n <gitConfigEmail></gitConfigEmail>\n
|
53
|
+
\ <skipTag>false</skipTag>\n <includedRegions></includedRegions>\n <scmName></scmName>\n
|
54
|
+
\ </scm>\n <canRoam>true</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n
|
55
|
+
\ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n
|
56
|
+
\ <triggers class=\"vector\">\n <com.cloudbees.jenkins.GitHubPushTrigger>\n
|
57
|
+
\ <spec></spec>\n </com.cloudbees.jenkins.GitHubPushTrigger>\n <hudson.triggers.SCMTrigger>\n
|
58
|
+
\ <spec>* * * * *</spec>\n </hudson.triggers.SCMTrigger>\n </triggers>\n
|
59
|
+
\ <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n
|
60
|
+
\ <command>rvm --force gemset empty _PROJECT_NAME_ && bundle install</command>\n
|
61
|
+
\ </hudson.tasks.Shell>\n <hudson.tasks.Shell>\n <command>bundle
|
62
|
+
exec rspec spec --format html -o doc/rspec.html</command>\n </hudson.tasks.Shell>\n
|
63
|
+
\ </builders>\n <publishers>\n <hudson.tasks.ArtifactArchiver>\n <artifacts>doc/*html</artifacts>\n
|
64
|
+
\ <latestOnly>false</latestOnly>\n </hudson.tasks.ArtifactArchiver>\n
|
65
|
+
\ <htmlpublisher.HtmlPublisher>\n <reportTargets>\n <htmlpublisher.HtmlPublisherTarget>\n
|
66
|
+
\ <reportName>Rspec Report</reportName>\n <reportDir>doc</reportDir>\n
|
67
|
+
\ <reportFiles>rspec.html</reportFiles>\n <keepAll>true</keepAll>\n
|
68
|
+
\ <wrapperName>htmlpublisher-wrapper.html</wrapperName>\n </htmlpublisher.HtmlPublisherTarget>\n
|
69
|
+
\ </reportTargets>\n </htmlpublisher.HtmlPublisher>\n <hudson.plugins.claim.ClaimPublisher/>\n
|
70
|
+
\ </publishers>\n <buildWrappers>\n <hudson.plugins.ansicolor.AnsiColorBuildWrapper/>\n
|
71
|
+
\ <ruby-proxy-object>\n <ruby-object ruby-class=\"Jenkins::Plugin::Proxies::BuildWrapper\"
|
72
|
+
pluginid=\"rvm\">\n <object ruby-class=\"RvmWrapper\" pluginid=\"rvm\">\n
|
73
|
+
\ <impl pluginid=\"rvm\" ruby-class=\"String\">1.9.2-p290@_PROJECT_NAME_</impl>\n
|
74
|
+
\ </object>\n <pluginid pluginid=\"rvm\" ruby-class=\"String\">rvm</pluginid>\n
|
75
|
+
\ </ruby-object>\n </ruby-proxy-object>\n </buildWrappers>\n</project>"
|
76
|
+
http_version: !!null
|
77
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
78
|
+
- request:
|
79
|
+
method: get
|
80
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ''
|
84
|
+
headers:
|
85
|
+
Accept:
|
86
|
+
- ! '*/*; q=0.5, application/xml'
|
87
|
+
Accept-Encoding:
|
88
|
+
- gzip, deflate
|
89
|
+
User-Agent:
|
90
|
+
- Ruby
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 200
|
94
|
+
message: OK
|
95
|
+
headers:
|
96
|
+
Server:
|
97
|
+
- Winstone Servlet Engine v0.9.10
|
98
|
+
Content-Type:
|
99
|
+
- application/xml
|
100
|
+
Connection:
|
101
|
+
- Close
|
102
|
+
Date:
|
103
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
104
|
+
X-Powered-By:
|
105
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ! "<?xml version='1.0' encoding='UTF-8'?>\n<project>\n <actions/>\n
|
109
|
+
\ <description>_PROJECT_NAME_</description>\n <logRotator>\n <daysToKeep>1</daysToKeep>\n
|
110
|
+
\ <numToKeep>5</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n
|
111
|
+
\ <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n
|
112
|
+
\ <properties>\n <com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
113
|
+
\ <projectUrl>_PROJECT_URL_</projectUrl>\n </com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
114
|
+
\ </properties>\n <scm class=\"hudson.plugins.git.GitSCM\">\n <configVersion>2</configVersion>\n
|
115
|
+
\ <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n <name></name>\n
|
116
|
+
\ <refspec></refspec>\n <url>_GIT_REPO_</url>\n </hudson.plugins.git.UserRemoteConfig>\n
|
117
|
+
\ </userRemoteConfigs>\n <branches>\n <hudson.plugins.git.BranchSpec>\n
|
118
|
+
\ <name>_BRANCH_NAME_</name>\n </hudson.plugins.git.BranchSpec>\n
|
119
|
+
\ </branches>\n <disableSubmodules>false</disableSubmodules>\n <recursiveSubmodules>false</recursiveSubmodules>\n
|
120
|
+
\ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n
|
121
|
+
\ <authorOrCommitter>false</authorOrCommitter>\n <clean>false</clean>\n
|
122
|
+
\ <wipeOutWorkspace>false</wipeOutWorkspace>\n <pruneBranches>false</pruneBranches>\n
|
123
|
+
\ <remotePoll>false</remotePoll>\n <ignoreNotifyCommit>false</ignoreNotifyCommit>\n
|
124
|
+
\ <buildChooser class=\"hudson.plugins.git.util.DefaultBuildChooser\"/>\n
|
125
|
+
\ <gitTool>Default</gitTool>\n <submoduleCfg class=\"list\"/>\n <relativeTargetDir></relativeTargetDir>\n
|
126
|
+
\ <reference></reference>\n <excludedRegions></excludedRegions>\n <excludedUsers></excludedUsers>\n
|
127
|
+
\ <gitConfigName></gitConfigName>\n <gitConfigEmail></gitConfigEmail>\n
|
128
|
+
\ <skipTag>false</skipTag>\n <includedRegions></includedRegions>\n <scmName></scmName>\n
|
129
|
+
\ </scm>\n <canRoam>true</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n
|
130
|
+
\ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n
|
131
|
+
\ <triggers class=\"vector\">\n <com.cloudbees.jenkins.GitHubPushTrigger>\n
|
132
|
+
\ <spec></spec>\n </com.cloudbees.jenkins.GitHubPushTrigger>\n <hudson.triggers.SCMTrigger>\n
|
133
|
+
\ <spec>* * * * *</spec>\n </hudson.triggers.SCMTrigger>\n </triggers>\n
|
134
|
+
\ <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n
|
135
|
+
\ <command>rvm --force gemset empty _PROJECT_NAME_ && bundle install</command>\n
|
136
|
+
\ </hudson.tasks.Shell>\n <hudson.tasks.Shell>\n <command>bundle
|
137
|
+
exec rspec spec --format html -o doc/rspec.html</command>\n </hudson.tasks.Shell>\n
|
138
|
+
\ </builders>\n <publishers>\n <hudson.tasks.ArtifactArchiver>\n <artifacts>doc/*html</artifacts>\n
|
139
|
+
\ <latestOnly>false</latestOnly>\n </hudson.tasks.ArtifactArchiver>\n
|
140
|
+
\ <htmlpublisher.HtmlPublisher>\n <reportTargets>\n <htmlpublisher.HtmlPublisherTarget>\n
|
141
|
+
\ <reportName>Rspec Report</reportName>\n <reportDir>doc</reportDir>\n
|
142
|
+
\ <reportFiles>rspec.html</reportFiles>\n <keepAll>true</keepAll>\n
|
143
|
+
\ <wrapperName>htmlpublisher-wrapper.html</wrapperName>\n </htmlpublisher.HtmlPublisherTarget>\n
|
144
|
+
\ </reportTargets>\n </htmlpublisher.HtmlPublisher>\n <hudson.plugins.claim.ClaimPublisher/>\n
|
145
|
+
\ </publishers>\n <buildWrappers>\n <hudson.plugins.ansicolor.AnsiColorBuildWrapper/>\n
|
146
|
+
\ <ruby-proxy-object>\n <ruby-object ruby-class=\"Jenkins::Plugin::Proxies::BuildWrapper\"
|
147
|
+
pluginid=\"rvm\">\n <object ruby-class=\"RvmWrapper\" pluginid=\"rvm\">\n
|
148
|
+
\ <impl pluginid=\"rvm\" ruby-class=\"String\">1.9.2-p290@_PROJECT_NAME_</impl>\n
|
149
|
+
\ </object>\n <pluginid pluginid=\"rvm\" ruby-class=\"String\">rvm</pluginid>\n
|
150
|
+
\ </ruby-object>\n </ruby-proxy-object>\n </buildWrappers>\n</project>"
|
151
|
+
http_version: !!null
|
152
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
153
|
+
- request:
|
154
|
+
method: post
|
155
|
+
uri: http://localhost:8080/job/test_job/config.xml
|
156
|
+
body:
|
157
|
+
encoding: ASCII-8BIT
|
158
|
+
string: ! "<?xml version='1.0' encoding='UTF-8'?>\n<project>\n <actions/>\n
|
159
|
+
\ <description>_PROJECT_NAME_</description>\n <logRotator>\n <daysToKeep>1</daysToKeep>\n
|
160
|
+
\ <numToKeep>5</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n
|
161
|
+
\ <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n
|
162
|
+
\ <properties>\n <com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
163
|
+
\ <projectUrl>_PROJECT_URL_</projectUrl>\n </com.coravy.hudson.plugins.github.GithubProjectProperty>\n
|
164
|
+
\ </properties>\n <scm class=\"hudson.plugins.git.GitSCM\">\n <configVersion>2</configVersion>\n
|
165
|
+
\ <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n <name></name>\n
|
166
|
+
\ <refspec></refspec>\n <url>_GIT_REPO_</url>\n </hudson.plugins.git.UserRemoteConfig>\n
|
167
|
+
\ </userRemoteConfigs>\n <branches>\n <hudson.plugins.git.BranchSpec>\n
|
168
|
+
\ <name>_BRANCH_NAME_</name>\n </hudson.plugins.git.BranchSpec>\n
|
169
|
+
\ </branches>\n <disableSubmodules>false</disableSubmodules>\n <recursiveSubmodules>false</recursiveSubmodules>\n
|
170
|
+
\ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n
|
171
|
+
\ <authorOrCommitter>false</authorOrCommitter>\n <clean>false</clean>\n
|
172
|
+
\ <wipeOutWorkspace>false</wipeOutWorkspace>\n <pruneBranches>false</pruneBranches>\n
|
173
|
+
\ <remotePoll>false</remotePoll>\n <ignoreNotifyCommit>false</ignoreNotifyCommit>\n
|
174
|
+
\ <buildChooser class=\"hudson.plugins.git.util.DefaultBuildChooser\"/>\n
|
175
|
+
\ <gitTool>Default</gitTool>\n <submoduleCfg class=\"list\"/>\n <relativeTargetDir></relativeTargetDir>\n
|
176
|
+
\ <reference></reference>\n <excludedRegions></excludedRegions>\n <excludedUsers></excludedUsers>\n
|
177
|
+
\ <gitConfigName></gitConfigName>\n <gitConfigEmail></gitConfigEmail>\n
|
178
|
+
\ <skipTag>false</skipTag>\n <includedRegions></includedRegions>\n <scmName></scmName>\n
|
179
|
+
\ </scm>\n <canRoam>true</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n
|
180
|
+
\ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n
|
181
|
+
\ <triggers class=\"vector\">\n <com.cloudbees.jenkins.GitHubPushTrigger>\n
|
182
|
+
\ <spec></spec>\n </com.cloudbees.jenkins.GitHubPushTrigger>\n <hudson.triggers.SCMTrigger>\n
|
183
|
+
\ <spec>* * * * *</spec>\n </hudson.triggers.SCMTrigger>\n </triggers>\n
|
184
|
+
\ <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n
|
185
|
+
\ <command>rvm --force gemset empty _PROJECT_NAME_ && bundle install</command>\n
|
186
|
+
\ </hudson.tasks.Shell>\n <hudson.tasks.Shell>\n <command>bundle
|
187
|
+
exec rspec spec --format html -o doc/rspec.html</command>\n </hudson.tasks.Shell>\n
|
188
|
+
\ </builders>\n <publishers>\n <hudson.tasks.ArtifactArchiver>\n <artifacts>doc/*html</artifacts>\n
|
189
|
+
\ <latestOnly>false</latestOnly>\n </hudson.tasks.ArtifactArchiver>\n
|
190
|
+
\ <htmlpublisher.HtmlPublisher>\n <reportTargets>\n <htmlpublisher.HtmlPublisherTarget>\n
|
191
|
+
\ <reportName>Rspec Report</reportName>\n <reportDir>doc</reportDir>\n
|
192
|
+
\ <reportFiles>rspec.html</reportFiles>\n <keepAll>true</keepAll>\n
|
193
|
+
\ <wrapperName>htmlpublisher-wrapper.html</wrapperName>\n </htmlpublisher.HtmlPublisherTarget>\n
|
194
|
+
\ </reportTargets>\n </htmlpublisher.HtmlPublisher>\n <hudson.plugins.claim.ClaimPublisher/>\n
|
195
|
+
\ </publishers>\n <buildWrappers>\n <hudson.plugins.ansicolor.AnsiColorBuildWrapper/>\n
|
196
|
+
\ <ruby-proxy-object>\n <ruby-object ruby-class=\"Jenkins::Plugin::Proxies::BuildWrapper\"
|
197
|
+
pluginid=\"rvm\">\n <object ruby-class=\"RvmWrapper\" pluginid=\"rvm\">\n
|
198
|
+
\ <impl pluginid=\"rvm\" ruby-class=\"String\">1.9.2-p290@_PROJECT_NAME_</impl>\n
|
199
|
+
\ </object>\n <pluginid pluginid=\"rvm\" ruby-class=\"String\">rvm</pluginid>\n
|
200
|
+
\ </ruby-object>\n </ruby-proxy-object>\n </buildWrappers>\n</project>"
|
201
|
+
headers:
|
202
|
+
Accept:
|
203
|
+
- ! '*/*; q=0.5, application/xml'
|
204
|
+
Accept-Encoding:
|
205
|
+
- gzip, deflate
|
206
|
+
Content-Type:
|
207
|
+
- application/xml
|
208
|
+
Content-Length:
|
209
|
+
- '3806'
|
210
|
+
User-Agent:
|
211
|
+
- Ruby
|
212
|
+
response:
|
213
|
+
status:
|
214
|
+
code: 200
|
215
|
+
message: OK
|
216
|
+
headers:
|
217
|
+
Server:
|
218
|
+
- Winstone Servlet Engine v0.9.10
|
219
|
+
Connection:
|
220
|
+
- Close
|
221
|
+
Content-Type:
|
222
|
+
- text/html;charset=ISO-8859-1
|
223
|
+
Date:
|
224
|
+
- Mon, 02 Jul 2012 11:49:49 GMT
|
225
|
+
X-Powered-By:
|
226
|
+
- Servlet/2.5 (Winstone/0.9.10)
|
227
|
+
body:
|
228
|
+
encoding: US-ASCII
|
229
|
+
string: ''
|
230
|
+
http_version: !!null
|
231
|
+
recorded_at: Mon, 02 Jul 2012 11:49:49 GMT
|
232
|
+
recorded_with: VCR 2.2.1
|