如何将工件从奴隶复制到詹金斯工作区?
How to copy the artifacts from slave to Jenkins workspace?
我是 运行 奴隶上的詹金斯工作,我想将生成的工件存储在 server.Since 工作目前 运行 在奴隶上工件也是在那里创建。
我尝试使用 post 构建操作 ---> 存档 artifacts.But 它抛出以下构建错误
ERROR: No artifacts found that match the file pattern "**/*.gz". Configuration error?
ERROR: '**/*.gz' doesn't match anything: '**' exists but not '**/*.gz'
非常感谢在这方面的任何帮助。
如果您想将工件从 JobA 复制到其他 Job 的工作区,您可以使用非常简单易懂的 Copy Artifact Plugin 来完成。
如果您只想归档 JobA 中已有的工件,那么您已经朝这个方向前进并需要检查您缺少的内容...您确定工件在当前工作区中吗?
多伦
听起来 Copy To Slave Plugin 正是您所需要的
它可以复制到slave(构建前)和从slave(构建后)
Copy files back to master node:
To activate this plugin for a given job, simply check the Copy files back to the job's workspace on the master node checkbox in the Post-build Actions section of the job. You then get the same two fields as for the Copy files to slave node before building section (note that label in the screenshot is old):
我是 运行 奴隶上的詹金斯工作,我想将生成的工件存储在 server.Since 工作目前 运行 在奴隶上工件也是在那里创建。
我尝试使用 post 构建操作 ---> 存档 artifacts.But 它抛出以下构建错误
ERROR: No artifacts found that match the file pattern "**/*.gz". Configuration error?
ERROR: '**/*.gz' doesn't match anything: '**' exists but not '**/*.gz'
非常感谢在这方面的任何帮助。
如果您想将工件从 JobA 复制到其他 Job 的工作区,您可以使用非常简单易懂的 Copy Artifact Plugin 来完成。
如果您只想归档 JobA 中已有的工件,那么您已经朝这个方向前进并需要检查您缺少的内容...您确定工件在当前工作区中吗?
多伦
听起来 Copy To Slave Plugin 正是您所需要的
它可以复制到slave(构建前)和从slave(构建后)
Copy files back to master node: To activate this plugin for a given job, simply check the Copy files back to the job's workspace on the master node checkbox in the Post-build Actions section of the job. You then get the same two fields as for the Copy files to slave node before building section (note that label in the screenshot is old):