Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prop will call save

  • Loading branch information...
commit b935a1824381bc41c60dc310bb7d7690831fdaa0 1 parent 8b89a7a
Ruoran Wang authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/chef/jenkins.rb
View
3  lib/chef/jenkins.rb
@@ -376,6 +376,7 @@ def foodcritic_test(cookbooks=[], cookbook_path=Chef::Config[:cookbook_path])
def prop(env_from=Chef::Config[:jenkins][:env_from], env_to=Chef::Config[:jenkins][:env_to])
add_upstream
+ save(env_from)
from = Chef::Environment.load(env_from)
to = Chef::Environment.load(env_to)
@@ -401,7 +402,7 @@ def save(env_name, item_name="")
env_version_tag = item[LATEST_TAG]
if env_version_tag =~ /(\d+)\_(\d+)/
major = $1
- minor = $2 + 1
+ minor = $2.to_i + 1
item_name = "#{major}_#{minor}"
Chef::Log.info("Latest tag bumped to #{item_name}")
else
Please sign in to comment.
Something went wrong with that request. Please try again.