Fix gpcloud's staging server concourse job
USE_PGXS=1 is mandatory, and it's no need to compile if not overwriting.
@@ -13,8 +13,8 @@ function gen_env(){
source /usr/local/greenplum-db-devel/greenplum_path.sh
cd "\${1}/gpdb_src/gpAux/extensions/gpcloud"
- make
- make gpcheckcloud
+ make USE_PGXS=1
+ make gpcheckcloud USE_PGXS=1
EOF
chown -R gpadmin:gpadmin $(pwd)
@@ -50,9 +50,13 @@ function _main() {
time configure
time install_gpdb
time setup_gpadmin_user
- time gen_env
+ if [ "$overwrite_gpcloud" = "true" ]
+ then
+ time gen_env
time build_gpcloud_components
+ fi
+
time push_to_staging_server
}
