<p>You can try to add an archive stage before this, maybe it isn't picking it because the war file isn't present when it needs to copy...
you can also try using '*/target/**/jenkinswar.war' for your source file</p>

CC BY-SA 4.0
2022-07-20T12:04:44.650Z
2022-07-20T12:04:44.650Z
Apanisile Ifeoluwa
<p>There's a jenkins server where my jenkinswar.war file is present in <code>/var/lib/jenkins/workspace/project2/target/jenkinswar.war</code></p>
<p>I want this file to be transferred to other remote server at <code>/opt/docker</code> location.</p>
<p>So I have configured as below:</p>
<p><a href="https://i.sstatic.net/7qVTf.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7qVTf.png" alt="enter image description here" /></a></p>
<p>Even though the build is successful, still the files transferred are 0.</p>
<p><a href="https://i.sstatic.net/lHEdS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/lHEdS.png" alt="enter image description here" /></a></p>

<jenkins><amazon-web-services><jenkins-pipeline><ssh>
Transferred 0 file(s) while transferring war file from Jenkins server to remote server
Manu
# Transferred 0 file(s) while transferring war file from Jenkins server to remote server

(Asked by: username_0 on 2022-07-11)

There's a jenkins server where my jenkinswar.war file is present in `/var/lib/jenkins/workspace/project2/target/jenkinswar.war`

I want this file to be transferred to other remote server at `/opt/docker` location.

So I have configured as below:

[![enter image description here](https://i.sstatic.net/7qVTf.png)](https://i.sstatic.net/7qVTf.png)

Even though the build is successful, still the files transferred are 0.

[![enter image description here](https://i.sstatic.net/lHEdS.png)](https://i.sstatic.net/lHEdS.png)

**Tags:** jenkins, amazon-web-services, jenkins-pipeline, ssh


---

## 1 answers

### Answer by username_1 on 2022-07-20. Score: 1

You can try to add an archive stage before this, maybe it isn't picking it because the war file isn't present when it needs to copy...
you can also try using '\*/target/\*\*/jenkinswar.war' for your source file


---

