This repository has been archived by the owner on Jan 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin stubbing out the shared library.
- Loading branch information
R. Tyler Croy
committed
Jan 4, 2018
1 parent
99b6ccf
commit cb8cf63
Showing
6 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
} |