17 lines
No EOL
363 B
Groovy
17 lines
No EOL
363 B
Groovy
enum Store {
|
|
JENKINS,
|
|
ARTIFACTSERVER,
|
|
}
|
|
|
|
this.JENKINS = Store.JENKINS
|
|
this.ARTIFACTSERVER = Store.JENKINS
|
|
|
|
def archive(MetaInfo meta, String artifactlist, Store store = JENKINS) {
|
|
echo "Archiving artifacts to store: ${store}"
|
|
meta.copyrelatedmeta()
|
|
if (store == JENKINS) {
|
|
archiveArtifacts(artifacts: artifactlist)
|
|
}
|
|
}
|
|
|
|
return this |