From 8a170179d5a0ef8a2071764d4658f501e8b1fa12 Mon Sep 17 00:00:00 2001 From: Greg Meyer Date: Thu, 10 Aug 2017 05:38:56 -0400 Subject: [PATCH] allows integrations core to download jmx fetch from rakefile (#3419) * allows integrations core to download jmx fetch from rakefile * fixes import error * lint --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 Rakefile diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 index 92a5a22478..d076143d43 --- a/Rakefile +++ b/Rakefile @@ -46,9 +46,11 @@ end desc 'Grab libs' task 'setup_libs' do in_venv = system "python -c \"import sys ; exit(not hasattr(sys, 'real_prefix'))\"" - raise 'Not in dev venv/CI environment - bailing out.' if !in_venv && !ENV['CI'] + raise 'Not in dev venv/CI environment/Integrations - bailing out.' if !in_venv && !ENV['CI'] && !ENV['SDK_HOME'] - jmx_version = `python -c "import config ; print config.JMX_VERSION"` + Rake::Task['setup_env'].invoke + + jmx_version = `venv/bin/python -c "import config ; print config.JMX_VERSION"` jmx_version = jmx_version.delete("\n") puts "jmx-fetch version: #{jmx_version}" jmx_artifact = "jmxfetch-#{jmx_version}-jar-with-dependencies.jar"