<p>If you are building these artifacts for a release/deploy, you will want them to be in as ready to release of a package as possible. If that is as a .zip, then yes you should create the .zip on the Jenkins server, then upload to Nexus. Your deploy system will then download, decompress, and manipulate the artifact as seen fit. In general, I would only use the node running Nexus to store artifacts and not execute any "build-like" processes. That is exactly what Jenkins was made for.</p>

CC BY-SA 3.0
2018-01-26T22:00:14.940Z
What do you use for the deploy part?
johnny
CC BY-SA 3.0
2018-01-26T22:04:12.120Z
I have used a multitude of deploy tools, but each one comes down to a combination of preference and use case. I have used Jenkins, Bamboo,  Octopus deploy, Chef, and in some cases just REALLY good scripting ;)
Preston Martin
CC BY-SA 4.0
2018-01-26T21:58:20.187Z
2019-05-12T16:04:33.777Z
2019-05-12T16:04:33.777Z
Preston Martin
<p>I am trying to figure out the correct way to do my pipeline.  Am I supposed to zip my code in Jenkins with maybe the File Operation plugin and then upload it to my private Nexus repository?  I don't send all kinds of files to Nexus and do something there do I?</p>

<jenkins><artifacts><nexus>
Is zipping a file supposed to happen in Jenkins or on Nexus?
johnny
# Is zipping a file supposed to happen in Jenkins or on Nexus?

(Asked by: username_0 on 2018-01-26)

I am trying to figure out the correct way to do my pipeline. Am I supposed to zip my code in Jenkins with maybe the File Operation plugin and then upload it to my private Nexus repository? I don't send all kinds of files to Nexus and do something there do I?

**Tags:** jenkins, artifacts, nexus


---

## 1 answers

### Answer by username_1 on 2018-01-26. Score: 4 | Accepted answer

If you are building these artifacts for a release/deploy, you will want them to be in as ready to release of a package as possible. If that is as a .zip, then yes you should create the .zip on the Jenkins server, then upload to Nexus. Your deploy system will then download, decompress, and manipulate the artifact as seen fit. In general, I would only use the node running Nexus to store artifacts and not execute any "build-like" processes. That is exactly what Jenkins was made for.

> **Comments:**
> **username_0**: What do you use for the deploy part?  
> **username_1**: I have used a multitude of deploy tools, but each one comes down to a combination of preference and use case. I have used Jenkins, Bamboo,  Octopus deploy, Chef, and in some cases just REALLY good scripting ;)  

---

