提交 0bb602a7 编写于 作者: A Adam Lee

Suppress the output of the credentials in concourse

To fix the credential leak, make these jobs able to be public after
their job history are scrubbed.

Also remove unnecessary -B, which benefits from 08ec642dSigned-off-by: NYuan Zhao <yuzhao@pivotal.io>
上级 f37a7982
......@@ -42,7 +42,7 @@ function _main() {
time setup_gpadmin_user
time gen_env
echo -n "$s3conf" | base64 -d > /home/gpadmin/s3.conf
set +x && echo -n "$s3conf" | base64 -d > /home/gpadmin/s3.conf && set -x
chown gpadmin:gpadmin /home/gpadmin/s3.conf
time run_regression_gpcheckcloud
......
......@@ -18,7 +18,7 @@ function gen_env(){
if [ "$overwrite_gpcloud" = "true" ]
then
cd "\${1}/gpdb_src/gpAux/extensions/gpcloud"
make -B install
make install
fi
cd "\${1}/gpdb_src/gpAux/extensions/gpcloud/regress"
......@@ -59,7 +59,7 @@ function _main() {
time make_cluster
time gen_env
echo -n "$s3conf" | base64 -d > /home/gpadmin/s3.conf
set +x && echo -n "$s3conf" | base64 -d > /home/gpadmin/s3.conf && set -x
chown gpadmin:gpadmin /home/gpadmin/s3.conf
time run_regression_test
......
......@@ -13,8 +13,8 @@ function gen_env(){
source /usr/local/greenplum-db-devel/greenplum_path.sh
cd "\${1}/gpdb_src/gpAux/extensions/gpcloud"
make -B
make -B gpcheckcloud
make
make gpcheckcloud
EOF
chown -R gpadmin:gpadmin $(pwd)
......@@ -31,7 +31,7 @@ function build_gpcloud_components() {
}
function push_to_staging_server() {
echo -n "$EC2_PRIVATE_KEY" | base64 -d > /home/gpadmin/ec2_private_key
set +x && echo -n "$EC2_PRIVATE_KEY" | base64 -d > /home/gpadmin/ec2_private_key && set -x
chmod 600 /home/gpadmin/ec2_private_key
ssh -i /home/gpadmin/ec2_private_key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null gpadmin@$EC2_INSTANCE_IP "source /home/gpadmin/greenplum-db-data/env/env.sh; source /home/gpadmin/greenplum-db/greenplum_path.sh; if gpstate &> /dev/null; then gpstop -a; fi"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册