Skip to content

Commit 2199a89

Browse files
committed
Add build script
Introduced build script to build gemspec file. This will be used by jenkins job to build and upload to rubygems.org. Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
1 parent d28a9c7 commit 2199a89

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ vendor/
1818
/dockerfiles/bin/
1919
/dockerfiles/.env
2020
gem-private_key.pem
21+
builds/
2122

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Copyright OpenSearch Contributors
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# This is intended to be run the root directory. `release/build.sh`
6+
set -e
7+
8+
GIT_ROOT=`git rev-parse --show-toplevel`
9+
10+
cd $GIT_ROOT # We need to start from repository root
11+
12+
rm -rf builds
13+
mkdir builds
14+
15+
echo 'Building gem'
16+
gem build logstash-output-opensearch.gemspec
17+
18+
echo 'Move Gem Location'
19+
mv -v logstash-output-opensearch*.gem $GIT_ROOT/builds/
20+
21+
echo 'List of gems to be published: '
22+
ls -l $GIT_ROOT/builds

0 commit comments

Comments
 (0)