devstack_custom/tools/jenkins/build_configuration.sh

20 lines
389 B
Bash
Raw Normal View History

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