Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit cb8cf63

Browse files
author
R. Tyler Croy
committed
Begin stubbing out the shared library.
1 parent 99b6ccf commit cb8cf63

File tree

6 files changed

+34
-1
lines changed

6 files changed

+34
-1
lines changed

README.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
= External Artifacts
2+
3+
This link:https://jenkins.io/doc/book/pipeline/shared-libraries[Pipeline Shared Library]
4+
performs an
5+
link:http://unethicalblogger.com/2017/08/03/overriding-builtin-steps-pipeline.html[override]
6+
of the built-in `archive` and `archiveArtifacts` steps to provide external
7+
artifact storage.

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/.gitignore

Whitespace-only changes.

vars/.gitignore

Whitespace-only changes.

vars/archive.groovy

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* archive - override the built-in `archive` step.
3+
*
4+
* This is just a support shim to pass off to the "real" step worth overriding:
5+
* archiveArtifacts
6+
*/
7+
8+
def call(Map args) {
9+
assert args.includes
10+
return archiveArtifacts(artifacts: args.includes, excludes: args.excludes)
11+
}
12+
13+
def call(String includes) {
14+
return call(includes: includes)
15+
}

vars/archiveArtifacts.groovy

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* archiveArtifacts- override the built-in `archiveArtifacts` step.
3+
*/
4+
5+
def call(Map args) {
6+
assert args.artifacts
7+
echo args
8+
}
9+
10+
def call(String artifacts) {
11+
return call(artifacts: includes)
12+
}

0 commit comments

Comments
 (0)