Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ Gemfile.bak
.bundle
vendor
.idea
lib/logstash-input-http_jars.rb
build/
.gradle/
14 changes: 7 additions & 7 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
########################################################
set -e

echo "Starting build process in: `pwd`"
echo "Starting build process in: $(pwd)"
source ./ci/setup.sh

if [[ -f "ci/run.sh" ]]; then
echo "Running custom build script in: `pwd`/ci/run.sh"
source ./ci/run.sh
echo "Running custom build script in: $(pwd)/ci/run.sh"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're indenting these lines we should indent the remaining ones in the block

source ./ci/run.sh
else
echo "Running default build scripts in: `pwd`/ci/build.sh"
bundle install
bundle exec rake vendor
bundle exec rspec spec
echo "Running default build scripts in: $(pwd)/ci/build.sh"
bundle install
bundle exec rake vendor
bundle exec rspec spec
fi
8 changes: 4 additions & 4 deletions ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
set -e
if [ "$LOGSTASH_BRANCH" ]; then
echo "Building plugin using Logstash source"
BASE_DIR=`pwd`
BASE_DIR=$(pwd)
echo "Checking out branch: $LOGSTASH_BRANCH"
git clone -b $LOGSTASH_BRANCH https://github.com/elastic/logstash.git ../../logstash --depth 1
git clone -b "$LOGSTASH_BRANCH" https://github.com/elastic/logstash.git ../../logstash --depth 1
printf "Checked out Logstash revision: %s\n" "$(git -C ../../logstash rev-parse HEAD)"
cd ../../logstash
echo "Building plugins with Logstash version:"
cat versions.yml
echo "---"
# We need to build the jars for that specific version
echo "Running gradle assemble in: `pwd`"
echo "Running gradle assemble in: $(pwd)"
./gradlew assemble
cd $BASE_DIR
cd "$BASE_DIR"
export LOGSTASH_SOURCE=1
else
echo "Building plugin using released gems on rubygems"
Expand Down
150 changes: 75 additions & 75 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading