Jenkins transferring 0 files using publish over SSH plugin

后端 未结 4 759
感情败类
感情败类 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:42

    I thinks, problem at your config. We have 2 positions to configure.

    1. At System configuration (Global config). --> If test ok ==> Configuration to remote server is ok.
    2. At your project. We will focus about transfer set: (Source file, Remove prefix, remote directory)

      2.1 Source file : if it's blank = workspace directory. in your case i think you should input **/*
      2.2 Remove prefix : refer Here for more info.
      2.3 Remote directory: if it's blank = directory that is configured at System configuration above.

    Hope it help! Sorry about my English.

提交回复
热议问题