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?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAO5HUhMQBEeQm0ghh7oq0vKs-XyMnXhXm8DF4Da3i3r_NeqybQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.