diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2016-05-22 22:09:10 +0200 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2016-05-24 06:55:55 +0000 |
commit | 3638eaa6af53d32bda130d843bc17123ec9ef3bb (patch) | |
tree | 72eabf6e8bb79dd0b6f553e5273588d4c9027730 /jjb/functest/functest-daily.sh | |
parent | 4f84bf5c43fa1ffd333a79075af60ba836a803ab (diff) |
functest: Take builders out of jjb
Change-Id: I546b1b323db2d1839335a34e8293b27f368b0626
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/functest/functest-daily.sh')
-rwxr-xr-x | jjb/functest/functest-daily.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jjb/functest/functest-daily.sh b/jjb/functest/functest-daily.sh new file mode 100755 index 000000000..5abddfd84 --- /dev/null +++ b/jjb/functest/functest-daily.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set +e + +branch=${GIT_BRANCH##*/} +[[ "$PUSH_RESULTS_TO_DB" == "true" ]] && flags+="-r" +if [[ ${branch} == *"brahmaputra"* ]]; then + cmd="${FUNCTEST_REPO_DIR}/docker/run_tests.sh -s ${flags}" +else + cmd="python ${FUNCTEST_REPO_DIR}/ci/run_tests.py -t all ${flags}" +fi +container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1) +docker exec $container_id $cmd |