Today I was struggling with Jenkins CI, and I was unable to find any documentation for archiveArtifacts function. Just in case, if you have the same problems, check out this link