Begin stubbing out the shared library.
This commit is contained in:
parent
99b6ccf329
commit
cb8cf635df
|
@ -0,0 +1,7 @@
|
|||
= External Artifacts
|
||||
|
||||
This link:https://jenkins.io/doc/book/pipeline/shared-libraries[Pipeline Shared Library]
|
||||
performs an
|
||||
link:http://unethicalblogger.com/2017/08/03/overriding-builtin-steps-pipeline.html[override]
|
||||
of the built-in `archive` and `archiveArtifacts` steps to provide external
|
||||
artifact storage.
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* archive - override the built-in `archive` step.
|
||||
*
|
||||
* This is just a support shim to pass off to the "real" step worth overriding:
|
||||
* archiveArtifacts
|
||||
*/
|
||||
|
||||
def call(Map args) {
|
||||
assert args.includes
|
||||
return archiveArtifacts(artifacts: args.includes, excludes: args.excludes)
|
||||
}
|
||||
|
||||
def call(String includes) {
|
||||
return call(includes: includes)
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* archiveArtifacts- override the built-in `archiveArtifacts` step.
|
||||
*/
|
||||
|
||||
def call(Map args) {
|
||||
assert args.artifacts
|
||||
echo args
|
||||
}
|
||||
|
||||
def call(String artifacts) {
|
||||
return call(artifacts: includes)
|
||||
}
|
Loading…
Reference in New Issue