Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Got "Failed to copy artifacts from another project with filter: **/*.war" while copying the war file from another project

Initially i used below configuration and job failed

This job failed with below configuration

It gave below error message

error it gave

It worked with below configuration

configuration with which it worked

So basically when i changed "Which build" option from "Latest successful build" to "Copy from WORKSPACE of latest completed build" it worked .

Can some please help me understand what it the difference between "Latest successful build" and "Copy from WORKSPACE of latest completed build" options.

like image 445
Akshay Joshi Avatar asked Aug 16 '18 04:08

Akshay Joshi


2 Answers

In the first (source) project, you will need to add a post-build step to Archive the artifact, otherwise, they will not be archived and the destination project won't be able to find them under the "artifact" folder.

like image 68
Ahmad Mohammad Abdelmoniem Yus Avatar answered Nov 17 '22 23:11

Ahmad Mohammad Abdelmoniem Yus


Hi I had the same problem:

ERROR: Failed to copy artifacts from package with filter: **/*.war
[DeployPublisher][INFO] Build failed, project not deployed
Finished: FAILURE

AND the solution was:

Config Project > Copy artifacts from another project > Which build > select the option: " Copy from WORKSPACE of latest completed build"
like image 41
juan manuel godoy Avatar answered Nov 17 '22 23:11

juan manuel godoy