Jenkins transferring 0 files using publish over SSH plugin

后端 未结 4 758
感情败类
感情败类 2020-12-05 13:54

I want to transfer files from my post build Jenkins workspace to a location on a remote server. Build goes smoothly for all steps in the job but always transfers 0 files.

4条回答
  •  清歌不尽
    2020-12-05 14:54

    My advices:

    1. You should avoid using spaces in the Jenkins job name!
      • in your case: name 20eyes Build can produce some troubles in file/directory matching
    2. You should use relative paths and not absolute paths!
      • in your case: /var/lib/jenkins/... should be replaced by relative path from job's workspace
    3. You should NOT copy whole workspace!
      • specify only appropriate files from last build (e.g. WAR file from target directory)
    4. You should check documentation and examples of Publish Over plugins:
      • examples will be very usefull for You

提交回复
热议问题