Skip to content

Commit

Permalink
Set the private_key after authentication is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jun 26, 2014
1 parent 182dfa0 commit 0b569b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/fixtures/cookbooks/authentication/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
public_keys [public_key]
end

# Set the private key on the executor
ruby_block 'set the private key' do
block { node.run_state[:jenkins_private_key] = private_key }
end

# Turn on basic authentication
jenkins_script 'setup authentication' do
command <<-EOH.gsub(/^ {4}/, '')
Expand All @@ -43,6 +38,11 @@ def strategy = new hudson.security.FullControlOnceLoggedInAuthorizationStrategy(
EOH
end

# Set the private key on the executor
ruby_block 'set the private key' do
block { node.run_state[:jenkins_private_key] = private_key }
end

# Run some commands - this will ensure the CLI is correctly passing attributes
jenkins_command 'clear-queue'

Expand Down

0 comments on commit 0b569b4

Please sign in to comment.