Add optional option to copyartifact plugin

Simply add the optional option to the copyartifact plugin that was
missing. It comes with a small pieces of doc and related tiny
relevant sample.

Change-Id: Ib74932bd9e0a988b826547badd02c8a1c67ae138
Closes-Bug: #1236909
Merge "Add optional option to copyartifact plugin"