Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
  • Loading branch information
gaiksaya committed Jul 23, 2024
1 parent efa1e6f commit cf66519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins/release-notes-check/release-notes-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ pipeline {
currentBuild.result = 'ABORTED'
error('ACTION and RELEASE_VERSION cannot be empty!')
}
if (ACTION == "check" && (COMMENT == "ADD" || GIT_ISSUE_NUMBER.isEmpty())) {
if (ACTION == "check" && (GIT_LOG_DATE.isEmpty() || COMMENT == "ADD" || GIT_ISSUE_NUMBER.isEmpty())) {
currentBuild.result = 'ABORTED'
error('COMMENT or GIT_ISSUE_NUMBER cannot be empty when ACTION = check!')
}
if (ACTION == "check" && (COMMENT == "UPDATE" || COMMENT_UNIQUE_ID.isEmpty())) {
if (ACTION == "check" && (GIT_LOG_DATE.isEmpty() || COMMENT == "UPDATE" || COMMENT_UNIQUE_ID.isEmpty())) {
currentBuild.result = 'ABORTED'
error('COMMENT or COMMENT_UNIQUE_ID cannot be empty when ACTION = check!')
}
Expand Down

0 comments on commit cf66519

Please sign in to comment.