Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the syntax of 'unarchive' of the jenkins workflow plugin?

I see multiple usages of unarchive in the tutorial of the Jenkins workflow plugin. But I'm not able to find any documentation about its syntax and options.

like image 450
domi Avatar asked Apr 20 '15 11:04

domi


People also ask

What is cleanWs () in Jenkins?

cleanWs : Delete workspace when build is done.

How do I archive a workspace in Jenkins?

You could simply archive the complete workspace at the end of a build. It would then get deleted when the job is deleted. To do this: Add post-build action -> "Archive the artifacts"

What is the workflow of Jenkins?

Pipelines are Jenkins jobs enabled by the Pipeline (formerly called “workflow”) plugin and built with simple text scripts that use a Pipeline DSL (domain-specific language) based on the Groovy programming language.

What is currentBuild in Jenkins?

currentBuild is a global variable that may be used to refer to the currently running build.


1 Answers

There is a usage blurb in the snippet generator:

May take a mapping parameter which is a map from artifact names (files, directories ending in /, or any other Ant patternsets), to workspace destination names.

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

To copy a whole directory: unarchive mapping: ['dir/' : '.']

like image 80
Jesse Glick Avatar answered Nov 07 '22 14:11

Jesse Glick