4 Star 7 Fork 4

HuaweiCloudDeveloper/huaweicloud-romaexchange-sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.sh 18.24 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# shellcheck disable=SC2153,SC2153
export isHCSO="${isHCSO}"
isCustomization="${1}"
case_name="${2}"
version="${3}"
workspace="${1}"
CUR_WORKSPACE="${CID_WORKSPACE}"
if [[ "${workspace}" == "WORKSPACE" ]];
then
CUR_WORKSPACE="${WORKSPACE}"
else
CUR_WORKSPACE="${CID_WORKSPACE}"
fi
echo "${CUR_WORKSPACE}"
function clean()
{
if [ ! -d "${CUR_WORKSPACE}/tempOutput" ];then
mkdir -p "${CUR_WORKSPACE}"/tempOutput
fi
}
clean
mkdir -p CustomDmax/RomaExDmax
mkdir -p CustomAssetRomaExOperation/RomaExOperation
mkdir -p CustomAssetRomaExPortal/portal
#romaexchange-common
mkdir -p CustomAssetCommon/componentproject
mkdir -p CustomAssetCommon/vue/dsStore
mkdir -p CustomAssetCommon/homepage
mkdir -p CustomAssetCommon/vue/area
#romaexchange-assetpublish
mkdir -p CustomAssetCommon/vue/assetRelease
mkdir -p CustomAdapter
mkdir -p CustomAssetCommon/bPMCanvas
ls -l
cp -r ./romaexchange-dmax/* "${CUR_WORKSPACE}"/CustomDmax/RomaExDmax/
cp -r ./romaexchange-adapter/* "${CUR_WORKSPACE}"/CustomAdapter/
cp -r ./romaexchange-area/* "${CUR_WORKSPACE}"/CustomAssetCommon/vue/area
cp -r ./romaexchange-assetpublish/* "${CUR_WORKSPACE}"/CustomAssetCommon/vue/assetRelease/
cp -r ./romaexchange-bpm/* "${CUR_WORKSPACE}"/CustomAssetCommon/bPMCanvas/
cp -r ./romaexchange-common/* "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/
cp -r ./romaexchange-homepage/* "${CUR_WORKSPACE}"/CustomAssetCommon/homepage/
cp -r ./romaexchange-operation/* "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/
cp -r ./romaexchange-portal/* "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/
cp -r ./romaexchange-store/* "${CUR_WORKSPACE}"/CustomAssetCommon/vue/dsStore/
#大屏安装包
echo "=======ROMAExchangeDMAX========"
cd "${CUR_WORKSPACE}"/CustomDmax || exit #调用此脚本大屏包的引入名需为CustomDmax
mkdir -p ROMAExchangeDMAX
cp -r ./RomaExDmax/code/* ./ROMAExchangeDMAX
#rm -rf ./ROMAExchangeDMAX/tenant/widget
#mkdir -p ROMAExchangeDMAX/tenant/widget
rm -rf ./ROMAExchangeDMAX/website-others/
#echo "=======压缩widget========"
#cd "${CUR_WORKSPACE}"/CustomDmax/RomaExDmax/code/tenant/widget || exit
#for dirW in ./*;do
# cd "${dirW}" || exit;
# zip -q -r "${CUR_WORKSPACE}/CustomDmax/ROMAExchangeDMAX/tenant/widget/${dirW}.zip" ./*;
# cd ..;
#done
cd "${CUR_WORKSPACE}"/CustomDmax/ROMAExchangeDMAX || exit
ls
zip -q -r "${CUR_WORKSPACE}"/tempOutput/RomaExDmax.zip ./*;
#portal和operation公共组件构建,调用此脚本公共组件的引入名需为CustomAssetCommon
cd ..
cd "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code || exit
npm install
npm run package
echo "========编译vue组件========"
mv "${CUR_WORKSPACE}"/CustomAssetCommon/vue/area/code/* "${CUR_WORKSPACE}"/CustomAssetCommon/vue/area/
rm -rf "${CUR_WORKSPACE}"/CustomAssetCommon/vue/area/code
mv "${CUR_WORKSPACE}"/CustomAssetCommon/vue/dsStore/code/* "${CUR_WORKSPACE}"/CustomAssetCommon/vue/dsStore/
rm -rf "${CUR_WORKSPACE}"/CustomAssetCommon/vue/dsStore/code
mv "${CUR_WORKSPACE}"/CustomAssetCommon/vue/assetRelease/code/* "${CUR_WORKSPACE}"/CustomAssetCommon/vue/assetRelease/
rm -rf "${CUR_WORKSPACE}"/CustomAssetCommon/vue/assetRelease/code
cd "${CUR_WORKSPACE}"/CustomAssetCommon/vue || exit
for dirP in ./*;do
if [[ "${dirP}" =~ "@tmp" ]];then
continue;
fi
cd "${dirP}" || exit;
npm config ls && npm install;
npm run lib;
npm run skava;
widget_name="${TENANT_ID}""_"$(grep "name" ./skava/packageinfo.json | sed '2,4d' |sed 's/"name": //g' | sed 's/"//g' | sed 's/_//g'| sed 's/ //g');
cd ..
done
echo "========编译homepage的vue组件========"
cd "${CUR_WORKSPACE}"/CustomAssetCommon/homepage/code/RomaExHomePageView || exit
npm install;
npm run lib;
npm run skava;
cd "${CUR_WORKSPACE}"/CustomAssetCommon/homepage/code/RomaExHomePageCfg || exit
npm install;
npm run lib;
npm run skava;
#portal前端安装包
echo "=======CustomAssetRomaExPortal========"
cd "${CUR_WORKSPACE}" || exit;
TENANT_ID=t0000000000ekkrauslct;
echo "=======移动Common到Portal========"
cd CustomAssetRomaExPortal || exit; # 调用此脚本Portal的引入名需为CustomAssetRomaExPortal
mkdir RomaExchangePortal
cp -r ./portal/code/* ./RomaExchangePortal/
mkdir RomaExchangePortal/website/tenant/widget
mkdir RomaExchangePortal/website/tenant/library
rm -rf ./RomaExchangePortal/widget
rm -rf ./RomaExchangePortal/website-others
echo "=======从专区取数据========"
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/DsBizComponent.umd.js "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/DsBizComponent.css "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/RomaComponent.css "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/RomaComponent.umd.js "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/img "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaComponent
echo "========从vue组件取数据========"
cd "${CUR_WORKSPACE}"/CustomAssetCommon/vue || exit
for dirP in ./*;do
if [[ "${dirP}" =~ "@tmp" ]];then
continue;
fi
cd "${dirP}" || exit;
widget_name="${TENANT_ID}""_"$(grep "name" ./skava/packageinfo.json | sed '2,4d' |sed 's/"name": //g' | sed 's/"//g' | sed 's/_//g'| sed 's/ //g');
cp -r ./dist/widget.zip "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/RomaExchangePortal/website/tenant/widget/"${widget_name}"".zip";
cd ..;
done
echo "========从homepage的vue组件取数据========"
cd "${CUR_WORKSPACE}"/CustomAssetCommon/homepage/code/RomaExHomePageView || exit
widget_name="${TENANT_ID}""_"$(grep "name" ./skava/packageinfo.json | sed '2,4d' |sed 's/"name": //g' | sed 's/"//g' | sed 's/_//g' | sed 's/ //g');
cp -r ./dist/widget.zip "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/RomaExchangePortal/website/tenant/widget/"${widget_name}"".zip";
echo "=======压缩普通widget========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/widget || exit
for dirP in ./*;do
cd "${dirP}" || exit;
zip -q -r "${CUR_WORKSPACE}/CustomAssetRomaExPortal/RomaExchangePortal/website/tenant/widget/${dirP}.zip" ./*;
cd ..;
done
echo "=======开源软件处理flag========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source || exit
npm install;
mv "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/node_modules/jszip/dist/jszip.min.js "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/t0000000000ekkrauslct_jszip/
echo "=======romaRouter1 Start========"
mv "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/node_modules/vue-router/dist/vue-router.min.js "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/t0000000000ekkrauslct_romaRouter/
echo "=======romaRouter1 Start========"
mv "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/node_modules/axios/dist/axios.min.js "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/t0000000000ekkrauslct_axios/
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_jszip
mv "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/t0000000000ekkrauslct_jszip/* "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_jszip
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaRouter
mv "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/t0000000000ekkrauslct_romaRouter/* "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_romaRouter
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_axios
mv "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/open_source/t0000000000ekkrauslct_axios/* "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others/t0000000000ekkrauslct_axios
echo "========压缩library库========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/portal/code/website-others || exit
ls
for dirP in ./*;do
cd "${dirP}" || exit;
zip -q -r "${CUR_WORKSPACE}/CustomAssetRomaExPortal/RomaExchangePortal/website/tenant/library/${dirP}.zip" ./*;
cd ..;
done
echo "========压缩RomaExchangePortal========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExPortal/RomaExchangePortal/website || exit
zip -q -r website.zip ./*
rm -rf tenant package.json
cd ..
zip -q -r "${CUR_WORKSPACE}"/tempOutput/RomaExPortal.zip ./*
#operation前端安装包
echo "=======复制文件夹ROMAExchangeOperation========"
cd "${CUR_WORKSPACE}" || exit;
TENANT_ID=t0000000000ekkrauslct
cd CustomAssetRomaExOperation || exit; # 调用此脚本Operation的引入名需为CustomAssetRomaExOperation
mkdir ROMAExchangeOperation
cp -r ./RomaExOperation/code/* ./ROMAExchangeOperation/
mkdir ROMAExchangeOperation/website/tenant/widget
mkdir ROMAExchangeOperation/website/tenant/library
rm -rf ./ROMAExchangeOperation/widget
rm -rf ./ROMAExchangeOperation/website-others
echo "=======从专区取数据========"
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/DsBizComponent.umd.js "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/DsBizComponent.css "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/RomaComponent.css "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/RomaComponent.umd.js "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaComponent
cp -r "${CUR_WORKSPACE}"/CustomAssetCommon/componentproject/code/dist/img "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaComponent
echo "========从vue组件取数据========"
cd "${CUR_WORKSPACE}"/CustomAssetCommon/vue || exit
for dirO in ./*;do
if [[ "${dirO}" =~ "@tmp" ]];then
continue;
fi
cd "${dirO}" || exit;
widget_name="${TENANT_ID}""_"$(grep "name" ./skava/packageinfo.json | sed '2,4d' |sed 's/"name": //g' | sed 's/"//g' | sed 's/_//g'| sed 's/ //g');
cp -r ./dist/widget.zip "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/ROMAExchangeOperation/website/tenant/widget/"${widget_name}"".zip";
cd ..;
done
echo "========编译homepage的vue组件========"
cd "${CUR_WORKSPACE}"/CustomAssetCommon/homepage/code/RomaExHomePageView || exit
widget_name="${TENANT_ID}""_"$(grep "name" ./skava/packageinfo.json | sed '2,4d' |sed 's/"name": //g' | sed 's/"//g' | sed 's/_//g'| sed 's/ //g');
cp -r ./dist/widget.zip "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/ROMAExchangeOperation/website/tenant/widget/"${widget_name}"".zip";
cd "${CUR_WORKSPACE}"/CustomAssetCommon/homepage/code/RomaExHomePageCfg || exit
widget_name="${TENANT_ID}""_"$(grep "name" ./skava/packageinfo.json | sed '2,4d' |sed 's/"name": //g' | sed 's/"//g' | sed 's/_//g'| sed 's/ //g');
cp -r ./dist/widget.zip "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/ROMAExchangeOperation/website/tenant/widget/"${widget_name}"".zip";
echo "=======处理bPMCanvas========"
cd "${CUR_WORKSPACE}"/CustomAssetCommon/bPMCanvas/code || exit
npm install --verbose
npm run build:magno
unzip "${CUR_WORKSPACE}"/CustomAssetCommon/bPMCanvas/code/BpmCanvas.zip -d "${CUR_WORKSPACE}"/CustomAssetCommon/bPMCanvas/code/BpmCanvas
if [ ! -d "${CUR_WORKSPACE}/CustomAssetRomaExOperation/RomaExOperation/code/widget/t0000000000ekkrauslct_BpmCanvasWidget" ];then
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/widget/t0000000000ekkrauslct_BpmCanvasWidget
fi
mv "${CUR_WORKSPACE}"/CustomAssetCommon/bPMCanvas/code/BpmCanvas/* "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/widget/t0000000000ekkrauslct_BpmCanvasWidget
echo "=======压缩普通widget========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/widget || exit
for dirO in ./*;do
cd "${dirO}" || exit;
zip -q -r "${CUR_WORKSPACE}/CustomAssetRomaExOperation/ROMAExchangeOperation/website/tenant/widget/${dirO}.zip" ./*;
cd ..;
done
echo "=======开源软件处理========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source || exit
npm install;
mv "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/node_modules/jszip/dist/jszip.min.js "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/t0000000000ekkrauslct_jszip/
echo "=======romaRouter2 Start========"
mv "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/node_modules/vue-router/dist/vue-router.min.js "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/t0000000000ekkrauslct_romaRouter/
echo "=======romaRouter2 Start========"
mv "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/node_modules/axios/dist/axios.min.js "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/t0000000000ekkrauslct_axios/
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_jszip
mv "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/t0000000000ekkrauslct_jszip/* "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_jszip
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaRouter
mv "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/t0000000000ekkrauslct_romaRouter/* "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_romaRouter
mkdir -p "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_axios
mv "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/open_source/t0000000000ekkrauslct_axios/* "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others/t0000000000ekkrauslct_axios
echo "========压缩library库========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/RomaExOperation/code/website-others || exit
for dirO in ./*;do
cd "${dirO}" || exit;
zip -q -r "${CUR_WORKSPACE}/CustomAssetRomaExOperation/ROMAExchangeOperation/website/tenant/library/${dirO}.zip" ./*;
cd ..;
done
echo "========压缩ROMAExchangeOperation========"
cd "${CUR_WORKSPACE}"/CustomAssetRomaExOperation/ROMAExchangeOperation/website || exit
zip -q -r website.zip ./*
rm -rf tenant package.json
cd ..
zip -q -r "${CUR_WORKSPACE}"/tempOutput/RomaExOperation.zip ./*
#适配器包
function compileBuildAdapter(){
echo "Begin to compileBuildAdapter."
adapterName="${1}"
CUR_WORKSPACE="${2}"
mkdir -p "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/website/tenant/widget
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/widget/
echo "=======删除后端无用文件夹以及文件========"
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/widget/
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/bo
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/docs
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/src
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/typings
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.bingo.sample.json
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.editorconfig
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.eslintignore
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.file-name-linter.json
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.gitattributes
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.gitignore
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.gitlab-ci.yml
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/.npmrc
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/package.json
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/package-lock.json
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/README.md
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/tsconfig.json
echo "=======1.压缩${adapterName}组件========"
cd "${CUR_WORKSPACE}"/CustomAdapter/"${adapterName}"/widget/ || exit
for dir in ./*;do
cd "${dir}" || exit;
zip -q -r "${CUR_WORKSPACE}/Adapter/${adapterName}/website/tenant/widget/${dir}.zip" ./*;
cd ..;
done
echo "=======1.压缩${adapterName}安装包========"
cd "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/website/ || exit
zip -q -r "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/website/website.zip ./*
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/website/tenant/
rm -rf "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/website/package.json
cd "${CUR_WORKSPACE}"/Adapter/"${adapterName}"/ || exit
zip -q -r "${CUR_WORKSPACE}"/tempOutput/"${adapterName}".zip ./*
}
echo "=======Adapter========"
cd ..
cd "${CUR_WORKSPACE}" || exit;
ls
mkdir Adapter
cp -r ./CustomAdapter/* ./Adapter # 调用此脚本适配器的引入名需为CustomAdapter
compileBuildAdapter "AppCube" "${CUR_WORKSPACE}"
compileBuildAdapter "OfflineSoftware" "${CUR_WORKSPACE}"
compileBuildAdapter "ROMAConnectAdapter_Auth" "${CUR_WORKSPACE}"
compileBuildAdapter "ROMAConnectAdapter_Deploy" "${CUR_WORKSPACE}"
compileBuildAdapter "ServiceStage" "${CUR_WORKSPACE}"
compileBuildAdapter "BrokerAdapter" "${CUR_WORKSPACE}"
if [[ "${isYC}" != 1 ]];then
compileBuildAdapter "SecurityScanAdapter" "${CUR_WORKSPACE}"
fi
if [[ "${isMajor}" != 1 ]];then
compileBuildAdapter "ExchangeAsService" "${CUR_WORKSPACE}"
compileBuildAdapter "IoTSolutionAdapter" "${CUR_WORKSPACE}"
fi
if [[ "${isSecure}" != 1 ]];then
compileBuildAdapter "IOTStageAdapter" "${CUR_WORKSPACE}"
fi
if [[ "${isHCSO}" != 1 ]];then
compileBuildAdapter "CCEAdapter" "${CUR_WORKSPACE}"
fi
function clean()
{
if [ ! -d "${CUR_WORKSPACE}/output" ];then
mkdir -p "${CUR_WORKSPACE}"/output
fi
}
clean
cd "${CUR_WORKSPACE}"/tempOutput
zip -q -r ${caseName}-${packageVersion}.zip *
ls -l
mv "${CUR_WORKSPACE}"/tempOutput/${caseName}-${packageVersion}.zip "${CUR_WORKSPACE}"/output
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HuaweiCloudDeveloper/huaweicloud-romaexchange-sample.git
git@gitee.com:HuaweiCloudDeveloper/huaweicloud-romaexchange-sample.git
HuaweiCloudDeveloper
huaweicloud-romaexchange-sample
huaweicloud-romaexchange-sample
master-dev

搜索帮助

0d507c66 1850385 C8b1a773 1850385