mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
80cd89673d
commit
f12eb2f28a
3 changed files with 8 additions and 2 deletions
|
@ -3,5 +3,10 @@ export GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info -D
|
|||
|
||||
./gradlew installDefaultGems
|
||||
bin/dependencies-report --csv report.csv
|
||||
|
||||
result=$?
|
||||
|
||||
# We want this to show on the CI server
|
||||
cat report.csv
|
||||
|
||||
exit $result
|
||||
|
|
|
@ -32,8 +32,9 @@ class LogStash::DependencyReport < Clamp::Command
|
|||
command = ["./gradlew", "generateLicenseReport", "-PlicenseReportInputCSV=#{ruby_output_path}", "-PlicenseReportOutputCSV=#{output_path}"]
|
||||
puts "Executing #{command}"
|
||||
system(*command)
|
||||
|
||||
if $?.exitstatus != 0
|
||||
raise "Could not run gradle java deps! Exit status #{$?.exitstatus}"
|
||||
raise "generateLicenseReport failed with exit status #{$?.exitstatus}"
|
||||
end
|
||||
|
||||
nil
|
||||
|
|
|
@ -46,7 +46,7 @@ public class Main {
|
|||
);
|
||||
|
||||
// If there were unknown results in the report, exit with a non-zero status
|
||||
//System.exit(reportResult ? 0 : 1);
|
||||
System.exit(reportResult ? 0 : 1);
|
||||
}
|
||||
|
||||
static InputStream getResourceAsStream(String resourcePath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue