File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -5,40 +5,40 @@ echo nexus_password: ${nexus_password}
5
5
if [ $TRAVIS_TAG ] && [ " $TRAVIS_TAG " x != " " x ]; then
6
6
7
7
if [ ` echo $TRAVIS_TAG | grep " ^plugin_[0-9]\+\.[0-9]\+\.[0-9]\+_final$" ` ] || [ ` echo $TRAVIS_TAG | grep " ^plugin_[0-9]\+\.[0-9]\+\.[0-9]\+_snapshot$" ` ]; then
8
-
8
+
9
9
# nexus
10
10
echo ' '
11
11
echo ' [is a tag] start packing'
12
12
npm config set registry https://registry.npm.taobao.org
13
-
13
+
14
14
npm install
15
- npm run build -- --tag-name=$TRAVIS_TAG
15
+ npm run build_all -- --tag-name=$TRAVIS_TAG
16
16
ls
17
17
cd ../
18
18
ls
19
-
20
- zip -q -r kefu-webim-${TRAVIS_TAG} .zip kefu-webim -x " kefu-webim/node_modules/*" -x kefu-webim/appPageCached.js
19
+
20
+ zip -q -r kefu-webim-${TRAVIS_TAG} .zip kefu-webim -x " kefu-webim/node_modules/*" -x kefu-webim/appPageCached.js
21
21
22
22
if [ ` echo $TRAVIS_TAG | grep " ^plugin_[0-9]\+\.[0-9]\+\.[0-9]\+_final$" ` ]; then
23
23
24
24
curl -v -F r=releases -F hasPom=false -F e=zip -F g=com.easemob.kefu.webim.product -F a=kefu-webim -F v=${TRAVIS_TAG} -F p=zip -F file=@${TRAVIS_BUILD_DIR} /../kefu-webim-${TRAVIS_TAG} .zip -u ${nexus_user} :${nexus_password} https://hk.nexus.op.easemob.com/nexus/service/local/artifact/maven/content
25
-
25
+
26
26
else
27
-
28
- curl -v -F r=releases -F hasPom=false -F e=zip -F g=com.easemob.kefu.webim.development -F a=kefu-webim -F v=${TRAVIS_TAG} -F p=zip -F file=@${TRAVIS_BUILD_DIR} /../kefu-webim-${TRAVIS_TAG} .zip -u ${nexus_user} :${nexus_password} https://hk.nexus.op.easemob.com/nexus/service/local/artifact/maven/content
27
+
28
+ curl -v -F r=releases -F hasPom=false -F e=zip -F g=com.easemob.kefu.webim.development -F a=kefu-webim -F v=${TRAVIS_TAG} -F p=zip -F file=@${TRAVIS_BUILD_DIR} /../kefu-webim-${TRAVIS_TAG} .zip -u ${nexus_user} :${nexus_password} https://hk.nexus.op.easemob.com/nexus/service/local/artifact/maven/content
29
29
30
30
fi
31
-
31
+
32
32
else
33
33
34
34
echo ' '
35
35
echo ' The format of the tag is not correct.'
36
36
37
37
fi
38
38
39
- else
39
+ else
40
40
41
41
echo ' '
42
42
echo ' [not a tag] exit packing.'
43
43
44
- fi
44
+ fi
You can’t perform that action at this time.
0 commit comments