crazycode-cap-recipes 0.4.2 → 0.4.3
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.
- data/VERSION.yml +1 -1
- data/crazycode-cap-recipes.gemspec +1 -1
- data/lib/cap_recipes/tasks/cmdb.rb +2 -3
- data/lib/cap_recipes/tasks/sdpjenkins.rb +3 -0
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -15,8 +15,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
15
15
|
set :deploy_unit_code, ""
|
16
16
|
set :deploy_stage, "development"
|
17
17
|
|
18
|
-
set :
|
19
|
-
set :tag, ""
|
18
|
+
set :build_version, ""
|
20
19
|
|
21
20
|
role :app, :primary => true do
|
22
21
|
CmdbService.get_app_role("#{cse_base}", deploy_unit_code, deploy_stage)
|
@@ -29,7 +28,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
29
28
|
task :deploy_to_tomcat, :roles => :single do
|
30
29
|
codes = deploy_unit_code.split(/[,;\s]+/)
|
31
30
|
deploy_hash = Hash.new
|
32
|
-
codes.each {|code| deploy_hash[code] = CmdbService.start_deploy(cse_base, code, deploy_stage,
|
31
|
+
codes.each {|code| deploy_hash[code] = CmdbService.start_deploy(cse_base, code, deploy_stage, build_version) }
|
33
32
|
begin
|
34
33
|
gitdeploy.deploy
|
35
34
|
tomcat.restart
|
@@ -14,6 +14,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
14
14
|
_cset :release_pattern, "*.war"
|
15
15
|
_cset :upload_dir, ""
|
16
16
|
_cset :shell_commands, "cd #{upload_dir}; ls -all"
|
17
|
+
_cset :build_version, "unset version"
|
17
18
|
|
18
19
|
# role :app, :primary => true do
|
19
20
|
# CmdbService.get_app_role("#{cse_base}", deploy_unit_code, deploy_stage)
|
@@ -53,6 +54,8 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
53
54
|
cp file, "#{release_dir}/#{target_name}"
|
54
55
|
end
|
55
56
|
|
57
|
+
system "echo \"#{build_version}\" > #{release_dir}/version.txt"
|
58
|
+
|
56
59
|
end
|
57
60
|
|
58
61
|
desc "upload released file to remote hosts"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crazycode-cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- crazycode
|