Use:
println(pwd());
that should help you determine current working directory.
If the /home/user/project is the current working directory where the
project is checkout and you are looking at /home/user/artifacts for the zip
files:
archiveArtifacts artifacts: "../artifacts/**/*.zip", excludes: "
../artifacts/notIncluded/**/*.zip", fingerprint: true, allowEmptyArchive:
false, onlyIfSuccessful: true;
Note, you don't need the step(([$class:]) wrapper anymore, make it easier
to read into recent Jenkins. you can also change the path before calling
archive (I haven't test it but it should work, make it more compact and
easier to maintain and understand):
dir("../artifacts")
{
archiveArtifacts artifacts: "**/*.zip" ...
}
--
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/ee8e98cd-6527-4e67-9da4-7d47f657b76e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.