diff --git a/jenkins/release-workflows/release-notes-check.jenkinsfile b/jenkins/release-workflows/release-notes-check.jenkinsfile index d3e93cc2be..36f85caf21 100644 --- a/jenkins/release-workflows/release-notes-check.jenkinsfile +++ b/jenkins/release-workflows/release-notes-check.jenkinsfile @@ -126,7 +126,7 @@ pipeline { sh """ #!/bin/bash set +e - ./release_notes.sh compile manifests/${RELEASE_VERSION}/opensearch-${RELEASE_VERSION}.yml manifests/${RELEASE_VERSION}/opensearch-dashboards-${RELEASE_VERSION}.yml --output opensearch-release-notes-${RELEASE_VERSION}.md + ./release_notes.sh compile manifests/${RELEASE_VERSION}/opensearch-${RELEASE_VERSION}.yml manifests/${RELEASE_VERSION}/opensearch-dashboards-${RELEASE_VERSION}.yml --output release-notes/opensearch-release-notes-${RELEASE_VERSION}.md """ withCredentials([usernamePassword(credentialsId: 'jenkins-github-bot-token', passwordVariable: 'GITHUB_TOKEN', usernameVariable: 'GITHUB_USER')]) { try { diff --git a/tests/jenkins/TestReleaseNotesCheckAndCompile.groovy b/tests/jenkins/TestReleaseNotesCheckAndCompile.groovy index 8df10bff17..5254b834b1 100644 --- a/tests/jenkins/TestReleaseNotesCheckAndCompile.groovy +++ b/tests/jenkins/TestReleaseNotesCheckAndCompile.groovy @@ -75,7 +75,7 @@ class TestReleaseNotesCheckAndCompile extends BuildPipelineTest { assertThat(helper.callStack.findAll { call -> call.methodName == 'sh' }.any { call -> - callArgsToString(call).contains('./release_notes.sh compile manifests/3.0.0/opensearch-3.0.0.yml manifests/3.0.0/opensearch-dashboards-3.0.0.yml --output opensearch-release-notes-3.0.0.md') + callArgsToString(call).contains('./release_notes.sh compile manifests/3.0.0/opensearch-3.0.0.yml manifests/3.0.0/opensearch-dashboards-3.0.0.yml --output release-notes/opensearch-release-notes-3.0.0.md') }).isTrue() } } \ No newline at end of file diff --git a/tests/jenkins/jenkinsjob-regression-files/release-workflows/release-notes-compile.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/release-workflows/release-notes-compile.jenkinsfile.txt index 5926b21298..583a80a247 100644 --- a/tests/jenkins/jenkinsjob-regression-files/release-workflows/release-notes-compile.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/release-workflows/release-notes-compile.jenkinsfile.txt @@ -12,7 +12,7 @@ release-notes-check.sh( #!/bin/bash set +e - ./release_notes.sh compile manifests/3.0.0/opensearch-3.0.0.yml manifests/3.0.0/opensearch-dashboards-3.0.0.yml --output opensearch-release-notes-3.0.0.md + ./release_notes.sh compile manifests/3.0.0/opensearch-3.0.0.yml manifests/3.0.0/opensearch-dashboards-3.0.0.yml --output release-notes/opensearch-release-notes-3.0.0.md ) release-notes-check.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER}) release-notes-check.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)