mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -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
|
./gradlew installDefaultGems
|
||||||
bin/dependencies-report --csv report.csv
|
bin/dependencies-report --csv report.csv
|
||||||
|
|
||||||
|
result=$?
|
||||||
|
|
||||||
# We want this to show on the CI server
|
# We want this to show on the CI server
|
||||||
cat report.csv
|
cat report.csv
|
||||||
|
|
||||||
|
exit $result
|
||||||
|
|
|
@ -32,8 +32,9 @@ class LogStash::DependencyReport < Clamp::Command
|
||||||
command = ["./gradlew", "generateLicenseReport", "-PlicenseReportInputCSV=#{ruby_output_path}", "-PlicenseReportOutputCSV=#{output_path}"]
|
command = ["./gradlew", "generateLicenseReport", "-PlicenseReportInputCSV=#{ruby_output_path}", "-PlicenseReportOutputCSV=#{output_path}"]
|
||||||
puts "Executing #{command}"
|
puts "Executing #{command}"
|
||||||
system(*command)
|
system(*command)
|
||||||
|
|
||||||
if $?.exitstatus != 0
|
if $?.exitstatus != 0
|
||||||
raise "Could not run gradle java deps! Exit status #{$?.exitstatus}"
|
raise "generateLicenseReport failed with exit status #{$?.exitstatus}"
|
||||||
end
|
end
|
||||||
|
|
||||||
nil
|
nil
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class Main {
|
||||||
);
|
);
|
||||||
|
|
||||||
// If there were unknown results in the report, exit with a non-zero status
|
// 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) {
|
static InputStream getResourceAsStream(String resourcePath) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue