Getting artifacts/files of last successful build

3,878 views
Skip to first unread message

Niranjan Rao

unread,
Dec 26, 2012, 5:16:18 PM12/26/12
to jenkins...@googlegroups.com
I am a new user of jenkins - having migrated from hudson two days back. In hudson, I could use the url like

http://server/hudson/job/build/lastSuccessfulBuild/artifact/project/target/project.jar

to download entries for last successful build. We have bunch of scripts that use wget to download the files from last successful build. With jenkins, build artifacts shows with the version number, even though final name in maven build is set to something else. I did check the workspace and the files I am looking for does exist, however web front end does not expose it.

What will be the best way to download files?

Jan Seidel

unread,
Dec 27, 2012, 6:48:29 AM12/27/12
to jenkins...@googlegroups.com
Hiya,

I'm not sure what the problem is as this should work. I have just checked it.
I browsed via the web interface to the workspace and copied the link from an artifact and entered it in the browser. It works and has the structure as your URL.
Maybe a typo? browse to the workspace, copy the link and give it a try.
http://Jenkins_URL/view/Release%20Builds/job/project/lastSuccessfulBuild/artifact/build_folder/xxxxxxxxxxxx.zip

Take care
Jan

William Soula

unread,
Dec 27, 2012, 10:26:47 AM12/27/12
to jenkins...@googlegroups.com
That way still works are you sure you are archiving it?  If you look at a job that has run recently it will have links to the last successful build which uses the below syntax, so I'm thinking your file just isn't where you are expecting it to be.

Will

Niranjan Rao

unread,
Dec 27, 2012, 6:27:32 PM12/27/12
to jenkins...@googlegroups.com
Thank you. That fixed the problem.

Regards,

Niranjan
Reply all
Reply to author
Forward
0 new messages