-
The top-level script
start.sh
must work fine on your local system. -
The top-level
start.sh
invokes the individualstart.sh
scripts one after another. -
The local
start.sh
invokes below scripts in the order given below:-
do-start.sh
: It further invokes:-
start-ybdb.sh
: Launches the YugabyteDB Docker container. -
run-app.sh
: Runs the examples/tests for verifying the tool/framework.Does whatever is required to execute the examples/tests.
-
-
tear-down.sh
: Cleans up the setup by stopping processes, containers, etc.
-
-
Until you reach
tear-down.sh
, it's a good idea to exit on failure by usingset -e
. -
Ensure
tear-down.sh
is run always irrespective of the outcome of earlier scripts. -
While you are free to write the scripts in a way you deeem suitable, do ensure that your scripts:
-
generate artifacts (jars, reports) under a directory
artifacts
at this level, in the end. -
clean up the setup irrespective of the outcome of your scripts.
-
return non-zero exit code on failure at any stage.
-
-
Note, the Jenkins is running on Ubuntu 20.04 and your local system may be different (e.g. a mac). So it may happen that your scripts fail in Jenkins pipeline even though those worked fine on your mac. You'll need to fix it.
template
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||