summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 78cfdef9f0..d5e77904f7 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -82,8 +82,12 @@ jobs:
bundle config set without 'omnibus_package docgen ruby_prof'
bundle install --jobs=3 --retry=3 --path=vendor/bundle
gem install berkshelf --no-doc
+ # berks emits a ruby warning when it loads net/http due to a previously
+ # defined constant. Even though it is just a warning, powershell immediately
+ # exits 1. I'm not sure why but this just suppresses the warnings.
$env:RUBYOPT="-W0"
berks vendor cookbooks
+ # restore the default warning level
$env:RUBYOPT="-W1"
chef-client -z -o end_to_end --chef-license accept-no-persist
displayName: 'Run end_to_end::default recipe'