fix(bin): 优化编译脚本
This commit is contained in:
@@ -3,7 +3,7 @@ root_path=$(dirname $(cd $(dirname $0);pwd))
|
|||||||
source $root_path/bin/library.sh
|
source $root_path/bin/library.sh
|
||||||
mvn deploy -N -D skipTests -P local -s ~/.m2/settings-development.xml
|
mvn deploy -N -D skipTests -P local -s ~/.m2/settings-development.xml
|
||||||
deploy service-common service-dependencies service-configuration service-forest service-cli service-cli/service-cli-core service-executor service-executor/service-executor-core utils/executor
|
deploy service-common service-dependencies service-configuration service-forest service-cli service-cli/service-cli-core service-executor service-executor/service-executor-core utils/executor
|
||||||
package service-api service-check service-cli/service-cli-runner service-cloud-query service-executor/service-executor-manager service-executor/service-executor-task service-command service-exporter service-flink-query service-gateway service-hudi-query service-info-query service-monitor service-loki-query service-pulsar-query service-queue service-scheduler service-uploader service-web service-yarn-query service-zookeeper-query
|
package service-api service-check service-cli/service-cli-runner service-cloud-query service-executor/service-executor-manager service-executor/service-executor-task service-command service-exporter service-flink-query service-gateway service-hudi-query service-info-query service-monitor service-loki-query service-pulsar-query service-queue service-scheduler service-uploader service-web service-yarn-query service-zookeeper-query utils/sync
|
||||||
|
|
||||||
configs=(b2a4 b2b1 b2b5 b2b12)
|
configs=(b2a4 b2b1 b2b5 b2b12)
|
||||||
for config in ${configs[*]};
|
for config in ${configs[*]};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ ytp_url=ftp://$ytp_username:$ytp_password@132.121.122.15:2222
|
|||||||
|
|
||||||
upload_username=AxhEbscwsJDbYMH2
|
upload_username=AxhEbscwsJDbYMH2
|
||||||
upload_password=cYxg3b4PtWoVD5SjFayWxtnSVsjzRsg4
|
upload_password=cYxg3b4PtWoVD5SjFayWxtnSVsjzRsg4
|
||||||
upload_url=http://$upload_username:$upload_password@132.126.207.124:36800
|
upload_url=http://$upload_username:$upload_password@132.126.207.124:36800/file/upload
|
||||||
|
|
||||||
root_path=$(dirname $(cd $(dirname $0);pwd))
|
root_path=$(dirname $(cd $(dirname $0);pwd))
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ function upload() {
|
|||||||
file_name=$(basename $source_file_path)
|
file_name=$(basename $source_file_path)
|
||||||
echo "↪ Source md5: $(md5sum $source_file_path | awk '{print $1}')"
|
echo "↪ Source md5: $(md5sum $source_file_path | awk '{print $1}')"
|
||||||
echo "↪ Uploading $source_file_path"
|
echo "↪ Uploading $source_file_path"
|
||||||
curl $upload_url/file/upload/$file_name -T $source_file_path
|
curl $upload_url/$file_name -T $source_file_path
|
||||||
echo "↪ Upload ytp success"
|
echo "↪ Upload ytp success"
|
||||||
echo "↪ Download: curl $upload_url/file/download/$file_name -o $file_name"
|
echo "↪ Download: curl $upload_url/file/download/$file_name -o $file_name"
|
||||||
echo "↪ Delete source"
|
echo "↪ Delete source"
|
||||||
@@ -51,9 +51,9 @@ function joining {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deploy() {
|
function deploy() {
|
||||||
mvn -pl $(joining , $@) clean deploy -D skipTests -P local -s ~/.m2/settings-development.xml
|
mvn -pl $(joining , $@) clean deploy -D skipTests -P srdcloud -s ~/.m2/settings-development.xml
|
||||||
}
|
}
|
||||||
|
|
||||||
function package() {
|
function package() {
|
||||||
mvn -pl $(joining , $@) clean package -D skipTests -P local -s ~/.m2/settings-development.xml -P $build_profile
|
mvn -pl $(joining , $@) clean package -D skipTests -P srdcloud -s ~/.m2/settings-development.xml -P $build_profile
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user