devstack_custom/tools/jenkins/build_configuration.sh

22 lines
467 B
Bash
Raw Normal View History

2011-11-08 23:25:12 +00:00
#!/bin/bash
EXECUTOR_NUMBER=$1
CONFIGURATION=$2
2011-11-10 06:40:49 +00:00
ADAPTER=$3
2011-11-10 19:38:09 +00:00
RC=$4
2011-11-08 23:25:12 +00:00
function usage() {
echo "Usage: $0 - Build a configuration"
echo ""
2011-11-10 19:38:09 +00:00
echo "$0 [EXECUTOR_NUMBER] [CONFIGURATION] [ADAPTER] [RC (optional)]"
2011-11-08 23:25:12 +00:00
exit 1
}
# Validate inputs
2011-11-10 19:38:09 +00:00
if [[ "$EXECUTOR_NUMBER" = "" || "$CONFIGURATION" = "" || "$ADAPTER" = "" ]]; then
2011-11-08 23:25:12 +00:00
usage
fi
# Execute configuration script
2011-11-10 19:38:09 +00:00
cd configurations && ./$CONFIGURATION.sh $EXECUTOR_NUMBER $CONFIGURATION $ADAPTER "$RC"