Compare commits
	
		
			9 Commits
		
	
	
		
			ee13450b6b
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 676a6a8a82 | |||
| 1973b7681f | |||
| a061e1766c | |||
| 8d41bb95cc | |||
|  | adbf1c8057 | ||
|  | 6e90cba614 | ||
|  | e48469f013 | ||
|  | 1ea3fff921 | ||
|  | 5d6f6eccc7 | 
| @@ -4,12 +4,17 @@ pipeline { | ||||
|         stage('部署') { | ||||
|             steps { | ||||
|                 echo 'Deploying...' | ||||
|                 sh "cd /home/cq/s1&&git pull" | ||||
|                 sh "docker restart chuanqi-server-s1-logic" | ||||
|                 sshPublisher(publishers: [sshPublisherDesc(configName: 'chuanqi-xi', | ||||
|                     transfers: [sshTransfer( | ||||
|                         sourceFiles: '', | ||||
|                         execCommand: 'cd /opt/chuanqi/chuanqi-server-instance&&git pull&&docker restart chuanqi-server-logic', | ||||
|                         remoteDirectory: '.') | ||||
|                     ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true) | ||||
|                 ]) | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|     post{ | ||||
|     post { | ||||
|         success { | ||||
|             echo 'Deployment finished successfully.' | ||||
|             sh """ | ||||
|   | ||||
| @@ -28,6 +28,7 @@ pipeline { | ||||
|                 sh "cp linuxdo.php /home/cq/web/" | ||||
|                 sh "cp login.php /home/cq/web/" | ||||
|                 sh "cp api.php /home/cq/web/" | ||||
|                 sh "cp gameEui.json /home/cq/web/resource" | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -23,11 +23,21 @@ pipeline { | ||||
|         stage('部署') { | ||||
|             steps { | ||||
|                 echo 'Deploying...' | ||||
|                 sshPublisher(publishers: [sshPublisherDesc(configName: 'tencent-SG', | ||||
|                 sh 'ls -al' | ||||
|                 echo '部署奶昔服务器...' | ||||
|                 sshPublisher(publishers: [sshPublisherDesc(configName: 'chuanqi-xi', | ||||
|                     transfers: [sshTransfer( | ||||
|                         sourceFiles: "dist.zip", | ||||
|                         execCommand: "cd /home/chuanqi/web&&unzip -o dist.zip&&mv -f main.min_jocw9Tu2.js js/&&mv -f config.xml resource_Publish/cfg/&&rm -rf dist.zip&&chmod +x -R .", | ||||
|                         remoteDirectory: "/home/chuanqi/web") | ||||
|                         execCommand: "cd /opt/chuanqi/web&&mv ~/opt/chuanqi/web/dist.zip .&&unzip -o dist.zip&&mv -f main.min_jocw9Tu2.js js/&&mv -f config.xml resource_Publish/cfg/&&mv -f gameEui.json resource/&&rm -rf dist.zip&&chmod +x -R .", | ||||
|                         remoteDirectory: "/opt/chuanqi/web") | ||||
|                     ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true) | ||||
|                 ]) | ||||
|                 echo '部署阿里服务器...' | ||||
|                 sshPublisher(publishers: [sshPublisherDesc(configName: 'ali', | ||||
|                     transfers: [sshTransfer( | ||||
|                         sourceFiles: "dist.zip", | ||||
|                         execCommand: "cd /opt/chuanqi/web&&mv ~/opt/chuanqi/web/dist.zip .&&unzip -o dist.zip&&mv -f main.min_jocw9Tu2.js js/&&mv -f config.xml resource_Publish/cfg/&&mv -f gameEui.json resource/&&rm -rf dist.zip&&chmod +x -R .", | ||||
|                         remoteDirectory: "/opt/chuanqi/web") | ||||
|                     ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true) | ||||
|                 ]) | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user