Add packagename
This commit is contained in:
parent
2ff2a99368
commit
93b081bd17
@ -1,12 +1,13 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
void call(Map config = [:], Closure body = { }) {
|
void call(Map config = [:], String packageName, Closure body = { }) {
|
||||||
Map defaults = [
|
Map defaults = [
|
||||||
stepName: 'Publish'
|
stepName: 'Publish'
|
||||||
]
|
]
|
||||||
runConfig = defaults + config
|
runConfig = defaults + config
|
||||||
stage(runConfig.stepName) {
|
stage(runConfig.stepName) {
|
||||||
printBanner(runConfig.stepName)
|
printBanner(runConfig.stepName)
|
||||||
|
echo "Info: Publishing ${packageName}"
|
||||||
body()
|
body()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user