9f11f950 by lihua

测试发版

1 parent 18d860d7
1 1
2 2
3 FROM 192.168.6.22:8081/csbr/nginx:stable-alpine 3 FROM 192.168.5.4:82/csbr/nginx:stable-alpine
4 VOLUME /tmp 4 VOLUME /tmp
5 #将当前文件夹的dist文件复制到容器的/usr/share/nginx/html目录 5 #将当前文件夹的dist文件复制到容器的/usr/share/nginx/html目录
6 COPY ./dist/* /usr/share/nginx/html/ 6 COPY ./dist/* /usr/share/nginx/html/
......
...@@ -8,15 +8,15 @@ pipeline { ...@@ -8,15 +8,15 @@ pipeline {
8 //192.168.4.4服务器 8 //192.168.4.4服务器
9 //SSH_PATH = "csbr4.4" 9 //SSH_PATH = "csbr4.4"
10 //192.168.5.4 10 //192.168.5.4
11 SSH_PATH = "csbr20" 11 SSH_PATH = "csbr5.4"
12 SVN_TYPE = "dev" 12 SVN_TYPE = "test"
13 //139.9.190.186 13 //139.9.190.186
14 //SSH_PATH = "csbr190.186" 14 //SSH_PATH = "csbr190.186"
15 //SVN_TYPE = "master" 15 //SVN_TYPE = "master"
16 //镜像版本号 16 //镜像版本号
17 image_tag = "1.0.0" 17 image_tag = "1.0.0"
18 //docker私服ip 18 //docker私服ip
19 ip = "192.168.6.22:8081" 19 ip = "192.168.5.4:82"
20 //前端端口号 20 //前端端口号
21 port = "29900" 21 port = "29900"
22 //映射端口号 22 //映射端口号
...@@ -64,9 +64,9 @@ pipeline { ...@@ -64,9 +64,9 @@ pipeline {
64 steps { 64 steps {
65 //分分支构建 65 //分分支构建
66 script{ 66 script{
67 if(env.BRANCH_NAME=='develop'){ 67 if(env.BRANCH_NAME=='release-test'){
68 //master-asset分支环境 68 //master-asset分支环境
69 echo 'start to deploy ${SVN_FOLD} on develop ...' 69 echo 'start to deploy ${SVN_FOLD} on release-test ...'
70 sh ''' 70 sh '''
71 #docker rmi -f $(docker images | grep "none" | awk '{print $3}') 71 #docker rmi -f $(docker images | grep "none" | awk '{print $3}')
72 CID=$(docker ps -a | grep "${SVN_FOLD}" | awk '{print $1}') 72 CID=$(docker ps -a | grep "${SVN_FOLD}" | awk '{print $1}')
...@@ -108,14 +108,14 @@ pipeline { ...@@ -108,14 +108,14 @@ pipeline {
108 echo 'Deploying' 108 echo 'Deploying'
109 //分分支部署 109 //分分支部署
110 script{ 110 script{
111 if(env.BRANCH_NAME=='develop'){ 111 if(env.BRANCH_NAME=='release-test'){
112 //master-asset分支环境 112 //master-asset分支环境
113 echo 'start to deploy ${SVN_FOLD} on develop ...' 113 echo 'start to deploy ${SVN_FOLD} on release-test ...'
114 //调用Publish Over SSH插件,上传docker-compose.yaml文件并且执行deploy脚本 114 //调用Publish Over SSH插件,上传docker-compose.yaml文件并且执行deploy脚本
115 sshPublisher(publishers: [sshPublisherDesc(configName: "csbr20", transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: """ 115 sshPublisher(publishers: [sshPublisherDesc(configName: "csbr20", transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: """
116 #使用k8s构建 116 #使用k8s构建
117 kubectl delete -f /mnt/k8s/develop/daop-jgjf/fe-data-asset-management.yaml 117 kubectl delete -f /mnt/k8s/release-test/daop-jgjf/fe-data-asset-management.yaml
118 kubectl apply -f /mnt/k8s/develop/daop-jgjf/fe-data-asset-management.yaml 118 kubectl apply -f /mnt/k8s/release-test/daop-jgjf/fe-data-asset-management.yaml
119 """, execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/mnt/csbr/data', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'output/*.*')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) 119 """, execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/mnt/csbr/data', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'output/*.*')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
120 120
121 echo 'Depoly ${SVN_FOLD} success ...' 121 echo 'Depoly ${SVN_FOLD} success ...'
......
...@@ -43,7 +43,7 @@ server { ...@@ -43,7 +43,7 @@ server {
43 43
44 # 使用 rewrite 将 /api 替换为 /new-api 44 # 使用 rewrite 将 /api 替换为 /new-api
45 rewrite ^/api/(.*)$ /$1 break; 45 rewrite ^/api/(.*)$ /$1 break;
46 proxy_pass http://192.168.6.20:28052; 46 proxy_pass https://daop-zcgl-test.zgsjzc.com;
47 } 47 }
48 48
49 location /circulation { 49 location /circulation {
...@@ -61,7 +61,7 @@ server { ...@@ -61,7 +61,7 @@ server {
61 61
62 # 使用 rewrite 将 /circulation 替换为 /new-api 62 # 使用 rewrite 将 /circulation 替换为 /new-api
63 rewrite ^/circulation/(.*)$ /$1 break; 63 rewrite ^/circulation/(.*)$ /$1 break;
64 proxy_pass http://192.168.6.20:18052; 64 proxy_pass https://daop-lt-test.zgsjzc.com;
65 } 65 }
66 location /delivery { 66 location /delivery {
67 # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问 67 # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!