lib/vx/builder/script.rb in vx-builder-0.0.28 vs lib/vx/builder/script.rb in vx-builder-0.0.29

- old
+ new

@@ -12,15 +12,17 @@ autoload :Script, File.expand_path("../script/script", __FILE__) autoload :Prepare, File.expand_path("../script/prepare", __FILE__) autoload :Databases, File.expand_path("../script/databases", __FILE__) autoload :Cache, File.expand_path("../script/cache", __FILE__) autoload :Services, File.expand_path("../script/services", __FILE__) + autoload :Artifacts, File.expand_path("../script/artifacts", __FILE__) include Common::Helper::Middlewares middlewares do use Builder::Script::Cache + use Builder::Script::Artifacts use Builder::Script::Env use Builder::Script::Services use Builder::Script::Prepare use Builder::Script::Java use Builder::Script::Scala @@ -68,10 +70,14 @@ def to_script a = [] a << "\n# script" a += env.script + + a << "\n# after success" + a += env.after_success + a.join("\n") end private @@ -93,9 +99,10 @@ # announce software and services version announce: [], before_script: [], script: [], + after_success: [], after_script: [], source: source, task: task, cache_key: [],