Jenkins-Send files over SSH .

7Z压缩文件用来后面上传通过SSH
pipeline code: xcopy
"C:\\WINCE700\\OSDesigns\\SPM2.5e_DEV_S_OS\\SPM2.5e_DEV_S_OS\\RelDir\\SPM_EC7_ARMV5_Release\\NK.NB0" "H:\\SPM2.5eReleaseTool\\MyAPP\\DEV\\" /y "C:\\Program Files\\7-Zip\\7z.exe" a "H:\\SPM2.5eReleaseTool\\MyApp.tar" "H:\\SPM2.5eReleaseTool\\MyAPP"

 

 

 

 

 

Updating archive: H:\SPM2.5eReleaseTool\MyApp.tar

Add new data to archive: 7 folders, 9 files, 45826048 bytes (44 MiB)


Files read from disk: 16
Archive size: 45835264 bytes (44 MiB)
Everything is Ok
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (pushfile)
[Pipeline] echo
Hello World
[Pipeline] sshPublisher
SSH: Connecting from host [EC7-PC]
SSH: Connecting with configuration [sz1310] ...
SSH: Creating session: username [keven], hostname [192.168.13.10], port [22]
SSH: Connecting session ...
SSH: Connected
SSH: Opening SFTP channel ...
SSH: SFTP channel open
SSH: Connecting SFTP channel ...
SSH: Connected
SSH: cd [/home/keven/OS_SCM]
SSH: OK
SSH: cd [/home/keven/OS_SCM]
SSH: OK
SSH: mkdir [pipelinedemo]
SSH: OK
SSH: cd [pipelinedemo]
SSH: OK
SSH: put [1.tar]
SSH: OK
SSH: Opening exec channel ...
SSH: EXEC: channel open
SSH: EXEC: STDOUT/STDERR from command [git --version] ...
SSH: EXEC: connected
git version 2.21.0
SSH: EXEC: completed after 200 ms
SSH: Disconnecting configuration [sz1310] ...
SSH: Transferred 1 file(s)

 

posted @ 2022-12-15 09:36  dwtmjps  阅读(159)  评论(0编辑  收藏  举报