What is the syntax for the "unarchive" jenkins workflow plugin?

I see several ways to use unarchive in the Jenkins workflow plugin tutorial . But I can not find documentation about its syntax and parameters.

+7
jenkins jenkins-workflow
source share
2 answers

The fragment generator has :

It can accept the mapping parameter, which is a map of the names of artifacts (files, directories ending in / or any other Ant patterns), in the names of the workspace names.

For example, to copy a single file: unarchive mapping: ['target/my.war': 'here.war']

To copy the entire directory: unarchive mapping: ['dir/' : '.']

+6
source share

From 1.10 this step is outdated. You should now use stash and unstash , which have a simpler syntax.

+2
source share

All Articles