Write NA when the notes are not available. Do not fail.

This commit is contained in:
Manuele Simi 2020-06-06 15:18:56 -04:00
parent 6757cfd05e
commit 8f0876c7db
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}