firmware_tools/artifacts/archiver.groovy
2021-12-18 20:38:30 +00:00

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