Kristian
unread,Jan 11, 2017, 5:27:05 AM1/11/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Hey,
I have some questions on the ArtifactArchiver. I have several
projects, where the artifacts are copied into a special directory,
which is not a subfolder of the directory where the source code lies /
where the compilation is done.
For example, my source code lies at /home/user/project and after the
compilation and linking is done, the artifacts (in sometimes they are
already zipped) are copied into /home/user/artifacts.
Now, I want Jenkins pipeline to search there for the artifacts / zip
files. I already tried several ways of finding that directory.
stage('archive') {
step([$class: 'ArtifactArchiver', artifacts:
"**/../artifacts/*", fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts:
"../artifacts/*", fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts:
"**/artifacts/*", fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts:
"artifacts/*", fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts:
"/home/user/artifacts/*", fingerprint: true])
}
None of them worked i.e. the build always failed. What I am doing wrong here?
Another question is: Is there a way to give me some verbose output
when using ArtifactArchiver for debugging purposes?