Revamp stages and restructure project #1
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
void call(Map config = [:]) {
|
||||
void call(Map config = [:], Closure body) {
|
||||
Map defaults = [
|
||||
name: env.BUILD_TAG,
|
||||
archiveCmd: 'tar zcvf',
|
||||
@ -19,5 +19,6 @@ void call(Map config = [:]) {
|
||||
${runConfig.archiveCmd} ${archiveName} ${runConfig.artifacts.join(' ')}
|
||||
"""
|
||||
archiveArtifacts artifacts: archiveName, followSymlinks: false
|
||||
body()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user