backup_jenkins 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,7 +56,7 @@ module BackupJenkins
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
def jobs_files
|
|
59
|
-
`find #{config.jenkins["home"]} -maxdepth 3 -name config.xml -or -name nextBuildNumber`.split(/\n/)
|
|
59
|
+
`find #{config.jenkins["home"]}/jobs -maxdepth 3 -name config.xml -or -name nextBuildNumber`.split(/\n/)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def create_tarball
|
|
@@ -143,7 +143,7 @@ describe BackupJenkins::Backup do
|
|
|
143
143
|
|
|
144
144
|
it "should return the config.xml and nextBuildNumber files in job directories" do
|
|
145
145
|
subject.should_receive(:`).
|
|
146
|
-
with("find home -maxdepth 3 -name config.xml -or -name nextBuildNumber").
|
|
146
|
+
with("find home/jobs -maxdepth 3 -name config.xml -or -name nextBuildNumber").
|
|
147
147
|
and_return("file1\nfile2\nfile3")
|
|
148
148
|
subject.jobs_files.should == %w(file1 file2 file3)
|
|
149
149
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: backup_jenkins
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
87
87
|
version: '0'
|
|
88
88
|
segments:
|
|
89
89
|
- 0
|
|
90
|
-
hash:
|
|
90
|
+
hash: 2087000532683624378
|
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
none: false
|
|
93
93
|
requirements:
|
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
96
96
|
version: '0'
|
|
97
97
|
segments:
|
|
98
98
|
- 0
|
|
99
|
-
hash:
|
|
99
|
+
hash: 2087000532683624378
|
|
100
100
|
requirements: []
|
|
101
101
|
rubyforge_project:
|
|
102
102
|
rubygems_version: 1.8.24
|