You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # This shell script is used for Freestyle project
-
- SCRIPT_DIR=/home/navinfo/Documents/projs/SimulationPlatform/fastapi/scripts
- DATA_STORE=/home/data0/map-data
- NEXUS_SERVER_BASE=http://172.23.140.35:8088/repository/traffic_generic_files
-
- IFS='-' read -r CATALOG DESC VERSION <<EOF
- $MAP
- EOF
-
- VERSION="${VERSION%.*}"
- VERSION="${VERSION##*/}"
-
- mv MAP ${MAP}
- python3 ${SCRIPT_DIR}/mappkg.py -c ${MAP}
- if [ "$?" != "0" ]; then
- echo "Failed to checking the package"
- exit 1
- fi
- if [ -d data ]; then
- rm -rf data
- fi
- mkdir data
- python3 ${SCRIPT_DIR}/mappkg.py -x ${MAP} -d data
- python3 ${SCRIPT_DIR}/deploy.py data
- upload-to-nexus -f ${MAP} -g sb-map -s ${NEXUS_SERVER_BASE}
- # Replace the existent one
- if [ -d $DATA_STORE/$CATALOG/$VERSION ];then
- rm -rf $DATA_STORE/$CATALOG/$VERSION
- fi
- cp -r data/$CATALOG $DATA_STORE
- rm $MAP
|