Error message artifacts/*.jar doesn’t match anything: even ‘artifacts’ doesn’t exist

0 votes
Can someone explain the concept of artifacts in build process. I have the workspace directory where I check out the code to compile and run my ant scripts etc. At the end, in my case, I get a jar file that's ready to install. Is that considered to be the artifact? Where should I tell my build script to put the jar file?

I'm getting this error:

artifacts/*.jar doesn’t match anything: even ‘artifacts’ doesn’t exist
Aug 7, 2018 in Jenkins by lina
• 8,220 points
1,257 views

1 answer to this question.

0 votes
Artifacts store any data that is created as the side effect of running the Jenkins build. Each artefact is associated to only one build, but each build can have many artifacts.

A common convention is to put the result of a build into a build, target or bin directory.

The Jenkins archiver can use globs (target/*.jar) to easily pick up the right file even if you have a unique name per build.
answered Aug 7, 2018 by Nilesh
• 6,980 points

Related Questions In Jenkins

+1 vote
1 answer

Error: Unable to access jarfile agent.jar

Hello@akhtar, Whenever we try to connect windows system ...READ MORE

answered May 29 in Jenkins by MD
• 55,540 points
1,554 views
0 votes
1 answer

Error while communicating with remote Oracle DB through Jenkins-CI

I was also facing the same problem. ...READ MORE

answered Apr 25, 2018 in Jenkins by shubham
• 6,910 points
160 views
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 6,910 points
555 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
675 views
+2 votes
1 answer
0 votes
5 answers

How to resolve this error “Jenkins Host key verification failed”?

HI Mam, Please check the following solution:: 1. Switch ...READ MORE

answered May 3, 2019 in Jenkins by anonymous
18,832 views
0 votes
2 answers

Error - trustAnchors parameter must be non-empty

This fixed the problem for me on ...READ MORE

answered Aug 17, 2018 in Jenkins by Nilesh
• 6,980 points
895 views