[workflow plugin] unarchive() question

47 views
Skip to first unread message

Christoph Vogtländer

unread,
Feb 11, 2015, 8:23:27 AM2/11/15
to Jenkinsci Users
Hi,

how does unarchive() determines which artefact is to be unarchived? I am
building a C++ project natively and additionally doing a cross compile
in parallel.
Both archive steps will archive the same folder (but on two different
workspaces). What will happen during unarchive()? Does archive "merge"
the results (is it a big common data storage)?

Here is a stub to demonstrate what i mean:

parallel windowsBuild: {
node('Windows') {
unarchive mapping: ['src/' : '.']
cd('build') {
bat 'build'
}
archive "Binary/" // <-- archive created binaries
}
}, LinuxBuildEmbedded: {
node('Linux') {
unarchive mapping: ['src/' : '.']
cd('build') {
sh 'build'
}
archive "Binary/" // <-- archive created binaries
}
}

node('master') {
unarchive mapping ['Binary/' : 'Binary/'] // <-- what will happen
here?
}

Thanks
Christoph



Jesse Glick

unread,
Feb 25, 2015, 6:26:58 PM2/25/15
to jenkins...@googlegroups.com, jen...@mockies.de
On Wednesday, February 11, 2015 at 8:23:27 AM UTC-5, Christoph Vogtländer wrote:
Does archive "merge" the results (is it a big common data storage)?

Yes. 
Reply all
Reply to author
Forward
0 new messages