Write NA when the notes are not available. Do not fail.
This commit is contained in:
parent
6757cfd05e
commit
8f0876c7db
|
@ -156,7 +156,7 @@ String get_last_commit(repo_name) {
|
|||
String get_changelog(repo_name) {
|
||||
String text;
|
||||
dir(repo_name) {
|
||||
msg = sh(script: 'cat CHANGELOG.md', returnStdout: true)?.trim()
|
||||
msg = sh(script: 'cat CHANGELOG.md || echo NA', returnStdout: true)?.trim()
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue