Skip to content

Commit

Permalink
allows integrations core to download jmx fetch from rakefile (#3419)
Browse files Browse the repository at this point in the history
* allows integrations core to download jmx fetch from rakefile

* fixes import error

* lint
  • Loading branch information
gmmeyer authored and truthbk committed Aug 10, 2017
1 parent 5c9855f commit 8a17017
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Rakefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8a17017

Please sign in to comment.