Jenkins can't find existing artifacts

5,235 views
Skip to first unread message

David Villasmil

unread,
Apr 25, 2016, 8:45:05 AM4/25/16
to Jenkins Users
Hello Guys,

I have a jenkins running a job, after which I want it to "archive artifact", which is basically just get some files.

The Job clones a github and when ran, it generates some log files which I need. The patter is:

logfiles/*

I added a command to list the directory to make sure the files are there, and indeed they are.

+ ls -la logfiles
total
24
drwxr
-xr-x 2 root root 4096 Apr 22 23:23 .
drwxr
-xr-x 8 root root 4096 Apr 22 23:23 ..
-rw-r--r-- 1 root root    0 Apr 22 23:23 1461367410777_testuuid_61746144-3A3A-5555-4944-3D5343414C41.log
-rw-r--r-- 1 root root 1248 Apr 22 23:23 1461367410777_testuuid_61746144-3A3A-5555-4944-3D5343414C41_shortmsg.csv
-rw-r--r-- 1 root root 2521 Apr 22 23:23 1461367410777_testuuid_61746144-3A3A-5555-4944-3D5343414C41_stats.log
-rw-r--r-- 1 root root 8035 Apr 22 23:23 1461367410777_testuuid_61746144-3A3A-5555-4944-3D5343414C41_trace_msg.log
Archiving artifacts
ERROR
: No artifacts found that match the file pattern "logfiles/*". Configuration error?
ERROR
: logfiles/*’ doesn’t match anything, but ‘*’ does. Perhaps that’s what you mean?
Build step 'Archive the artifacts' changed build result to FAILURE


I don't really understand why they are not found.

I have tried many different patterns, like "**/logfiles/*.log",  "**/logfiles/*.*",  "**/logfiles/*",  and even asking specifically for the file like "logfiles/1461367410777_testuuid_61746144-3A3A-5555-4944-3D5343414C41_shortmsg.csv"
Always same result.

Can any one help?

Regards,

David

Jackson, Randy

unread,
Apr 25, 2016, 9:10:25 AM4/25/16
to Jenkins Users

Try using logfiles/ without the *

 

Randy Jackson
Software Build Engineer  |  Indiana Farm Bureau Insurance
225 S. East Street P O Box 1250  |  Indianapolis, IN 46206
Office: (317) 692-8118  |  Fax: (317) 692-7212
Randy....@infarmbureau.com  |  www.infarmbureau.com

 

http://www.infarmbureau.com/images/signature/signatureLogo.gif

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1146d4e6-d155-4046-add7-9fd4c1a9a7ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


This email is intended solely for the named addressee(s) and may be confidential or contain privileged information. Review, disclosure, copying, distribution, or use of this email by anyone other than an intended recipient is strictly prohibited. If you received this email in error, please delete it from your system and notify the sender immediately. While precautions have been taken to help ensure no computer viruses are present, there is a risk whenever transmitting emails or downloading attachments. The sender will not be liable for any loss or damage resulting from any malware in this communication or for improper or incomplete transmission of its contents or for any delay in its receipt.

David Villasmil

unread,
Apr 25, 2016, 11:56:46 AM4/25/16
to Jenkins Users
Hello,

Thanks for answering. Funny thing, it didn't generate an error, but still didn't get the files... :(

David

Jackson, Randy

unread,
Apr 25, 2016, 4:00:22 PM4/25/16
to Jenkins Users

Where are you looking for them?

On the Jenkins GUI, they should be under the build for the job.

On the server they should be at:

%JenkinsHome%/jobs/%JobName%/builds/%BuildNumber%/archive/

If you are running on a slave server, the archived files will be on the master server

 

Randy Jackson
Software Build Engineer  |  Indiana Farm Bureau Insurance
225 S. East Street P O Box 1250  |  Indianapolis, IN 46206
Office: (317) 692-8118  |  Fax: (317) 692-7212
Randy....@infarmbureau.com  |  www.infarmbureau.com

 

http://www.infarmbureau.com/images/signature/signatureLogo.gif

 

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of David Villasmil


Sent: Monday, April 25, 2016 11:57 AM
To: Jenkins Users

--

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

bandi pavankumar reddy

unread,
Apr 26, 2016, 2:11:53 AM4/26/16
to Jenkins Users
Hi,

Try using **/*.log . may be this will help you.

Lionel Orellana

unread,
Apr 26, 2016, 3:30:27 AM4/26/16
to Jenkins Users
Or **/logfiles/*

David Villasmil Govea

unread,
Apr 26, 2016, 4:44:06 AM4/26/16
to Jenkins Users
Hello all,

I finally found my problem. I had configured the job to do the git clone. But for some reason I also added the cloning on the build steps... once i removed that jenkins started getting the files properly.

I would still like to understand why this would happen...

Regards,

David


On Tue, Apr 26, 2016 at 9:30 AM Lionel Orellana <lion...@gmail.com> wrote:
Or **/logfiles/*

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/_6bHcXQ7EPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/033fbba3-4ddb-4723-a4f6-13b1e0f1d313%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages