Skip to content

Commit c1804f0

Browse files
authored
Merge pull request #40 from cloudogu/feature/welcome-message
Add welcome message and print actual config
2 parents 8046d36 + 7f1c0df commit c1804f0

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- Add welcome message and print configs at application start
12+
1013
### Changed
1114
- Disable yamllint image due to image is not longer maintained
1215

vars/deployViaGitops.groovy

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ void call(Map gitopsConfig) {
100100
// Merge default config with the one passed as parameter
101101
gitopsConfig = mergeMaps(createDefaultConfig(gitopsConfig.k8sVersion as String), gitopsConfig)
102102
if (validateConfig(gitopsConfig)) {
103+
printWelcomeAndConfigs(gitopsConfig)
103104
cesBuildLib = initCesBuildLib(gitopsConfig.cesBuildLibRepo, gitopsConfig.cesBuildLibVersion, gitopsConfig.cesBuildLibCredentialsId)
104105
deploy(gitopsConfig)
105106
}
@@ -343,6 +344,27 @@ protected String createBuildDescription(String pushedChanges) {
343344
return description
344345
}
345346

347+
private printWelcomeAndConfigs(Map gitopsConfig){
348+
349+
print("""
350+
################################################################################################################
351+
352+
_ _ _ _ _ _ _ _ _
353+
(_) | | | (_) | | | | (_) |
354+
__ _ _| |_ ___ _ __ ___ ______| |__ _ _ _| | __| |______| |_| |__
355+
/ _` | | __/ _ \\| '_ \\/ __|______| '_ \\| | | | | |/ _` |______| | | '_ \\
356+
| (_| | | || (_) | |_) \\__ \\ | |_) | |_| | | | (_| | | | | |_) |
357+
\\__, |_|\\__\\___/| .__/|___/ |_.__/ \\__,_|_|_|\\__,_| |_|_|_.__/
358+
__/ | | |
359+
|___/ |_|
360+
361+
config:
362+
${gitopsConfig.collect { key, value -> " $key: $value" }.join("\n")}
363+
364+
################################################################################################################
365+
""")
366+
}
367+
346368
def cesBuildLib
347369
Deployment deployment
348370
SCMProvider provider

0 commit comments

Comments
 (0)