Jenkins 0 files published after build

后端 未结 1 425
傲寒
傲寒 2021-01-21 22:13

I have a Jenkins server setup with two jobs

first job polls the develop branch and builds the project on the jenkins server. i then have another job that polls the produc

相关标签:
1条回答
  • 2021-01-21 22:39

    You should remove /* from the Remove prefix line

    Edit:
    Your Source files cannot be outside of the job's workspace. If your files are in the root of workspace, just set it to * to transfer all workspace files, or **/* to include subdirectories. Else specify a pattern relative to ${WORKSPACE}.

    Even adding a leading / will not escape that, as all it does is append that to workspace, in your case it becomes ${WORKSPACE}/var/www/workspace/opms-staging-server. Even using parent directory ../ will not work. This is for security concerns, else a job configurer could transfer private files off the Jenkins server.

    If you need to get files from another job, you need to use Copy Artifacts build step. Tell me if that's your case, and I will explain further.

    0 讨论(0)
提交回复
热议问题