Skip to content

Expose release-temp repo as releaseTempRepoUrl env #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions attributes/master.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@
# Since we can't marshall closures, while attributes need to be sent from master to workers, we must encode them as something that can be shipped...
default['master']['env'] = <<-'EOH'.gsub(/^ {2}/, '')
lambda{| node | Chef::Node::ImmutableMash.new({
"JAVA_HOME" => node['java']['java_home'], # we get the jre if we don't do this
"JAVA_OPTS" => node['jenkinsEnv']['JAVA_OPTS'],
"ANT_OPTS" => node['jenkinsEnv']['ANT_OPTS'],
"MAVEN_OPTS" => node['jenkinsEnv']['MAVEN_OPTS'],
"prRepoUrl" => node['repos']['private']['pr-snap']
"JAVA_HOME" => node['java']['java_home'], # we get the jre if we don't do this
"JAVA_OPTS" => node['jenkinsEnv']['JAVA_OPTS'],
"ANT_OPTS" => node['jenkinsEnv']['ANT_OPTS'],
"MAVEN_OPTS" => node['jenkinsEnv']['MAVEN_OPTS'],
"prRepoUrl" => node['repos']['private']['pr-snap'],
"releaseTempRepoUrl" => node['repos']['private']['release-temp']
})}
EOH

Expand Down