Can a Jenkins build access the archived artifacts from itself

0 votes
I'm using Jenkins and have the "Archive the Artifacts" step at the end of my builds to archive them into a zip file.

Instead of using this step, I'd like to use a script to push the artifacts to a remote server at the end of the build. The server I'm pushing to uses a REST API / HTTP PUT request in a script to upload files.

Note that I'm looking to access the artifact created in the same build. So if I'm on build #5, I want the artifacts from build #5, not build #4.

Is there any way to access this zip file with a script, in the same build that it was created in?

I need to upload this zip remotely and don't want to create another job to do so.
Oct 15, 2020 in Jenkins by anonymous
• 19,610 points
3,186 views

1 answer to this question.

0 votes

You could probably use one of the "Publish Over" plugins to upload your artifacts at the end of a build.

The goal of the Publish Over plugins is to provide a consistent set of features and behaviors when sending build artifacts ... somewhere.

answered Oct 15, 2020 by Lyana

Related Questions In Jenkins

+2 votes
5 answers
0 votes
1 answer

How do I pass value from my Fake # script to the host build server (Jenkins)

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,680 points
1,387 views
+1 vote
4 answers

Is there a way to change the Jenkins build number while building a job?

If you have access to the script ...READ MORE

answered May 7, 2019 in Jenkins by Atul
29,813 views
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
+2 votes
1 answer
0 votes
1 answer

Where can I find the Jenkins artifacts?

It is being archived on the master ...READ MORE

answered Oct 15, 2020 in Jenkins by Kim
8,721 views
0 votes
1 answer

How to restore archived artifacts in jenkins?

Do you mean accessing the archived artifacts ...READ MORE

answered Oct 15, 2020 in Jenkins by Karan
• 19,610 points
1,294 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP