Skip to content

Commit 6749322

Browse files
committed
jenkins: Add argument parsing to build script
With the soon to arrive pipelines instead of multijob for building tests, we need to pass build options as arguments instead of environment variables. So add a bit of code to turn arguments into variables. Signed-off-by: Brian Barrett <[email protected]>
1 parent a2773cc commit 6749322

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jenkins/open-mpi-build-script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# abort on error
44
set -e
55

6+
# sigh; this probably isn't the most user friendly thing I've ever done...
7+
for var in "$@"; do
8+
eval $@
9+
done
10+
611
#
712
# Start by figuring out what we are...
813
#

0 commit comments

Comments
 (0)