aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Donna Dionne <donnadionne@google.com>2015-04-22 12:41:15 -0700
committerGravatar Donna Dionne <donnadionne@google.com>2015-04-22 12:41:15 -0700
commit58ece612dcfef8f2d86b2705648eb291149ad642 (patch)
tree3aca54bd5ab7d730eb0d5dc348493e15ea9acb58
parentd0a162dc78ec7dcef280418b68850826905938f7 (diff)
Making modifications after comments
Add uploading private result to GCS
-rwxr-xr-xtools/gce_setup/private_build_and_test.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gce_setup/private_build_and_test.sh b/tools/gce_setup/private_build_and_test.sh
index c5c6c58a17..bab27b5fa3 100755
--- a/tools/gce_setup/private_build_and_test.sh
+++ b/tools/gce_setup/private_build_and_test.sh
@@ -17,9 +17,12 @@ TEST=$3
GIT=$4
SERVER=${5:-"grpc-docker-server"}
+current_time=$(date "+%Y-%m-%d-%H-%M-%S")
+result_file_name=private_result.$current_time.txt
+
sudo docker run --name="private_images" -v $4:/var/local/git-clone grpc/$1 /var/local/git-clone/grpc/tools/dockerfile/grpc_$1/build.sh
-sudo docker commit -m "private image" -a "donnadionne" private_images grpc/private_images
+sudo docker commit -m "private image" -a $USER private_images grpc/private_images
sudo docker tag -f grpc/private_images 0.0.0.0:5000/grpc/private_images
@@ -46,7 +49,8 @@ then
else
if [ $ENV == 'cloud' ]
then
- grpc_cloud_prod_test $TEST grpc-docker-testclients1 $LANGUAGE
+ grpc_cloud_prod_test $TEST grpc-docker-testclients1 $LANGUAGE > /tmp/$result_file_name 2>&1
+ gsutil cp /tmp/$result_file_name gs://stoked-keyword-656-output/private_result/$result_file_name
else
grpc_cloud_prod_test $TEST grpc-docker-testclients1 $LANGUAGE
fi