Skip to content

Commit 3f4df8d

Browse files
authored
Enable issue notification and labelling for all distributions (#4420)
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
1 parent 7c1aec8 commit 3f4df8d

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

jenkins/opensearch-dashboards/integ-test.jenkinsfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ pipeline {
116116
env.artifactPath = buildManifestObj.getArtifactRoot(BUILD_JOB_NAME, buildId)
117117
env.artifactPathOpenSearch = buildManifestObjOpenSearch.getArtifactRoot(BUILD_JOB_NAME_OPENSEARCH, buildIdOpenSearch)
118118
env.AGENT_LABEL = agent_nodes["${env.platform}_${architecture}"]
119-
env.updateGithubIssues = (params.UPDATE_GITHUB_ISSUES && (env.distribution == 'tar'))
120-
echo "GitHub issue update is set to : ${env.updateGithubIssues.toBoolean()}"
121119

122120
echo "Version: ${version}, VersionOpenSearch: ${versionOpenSearch}, Agent: ${AGENT_LABEL}, OSD_BuildId: ${buildId}, OS_BuildId: ${buildIdOpenSearch}, Distribution: ${distribution}"
123121
currentBuild.description = "$architecture, $platform, osd-$version-$buildId, os-$versionOpenSearch-$buildIdOpenSearch, $distribution"
@@ -256,7 +254,7 @@ pipeline {
256254
localPath: "${WORKSPACE}/${distribution}",
257255
switchUserNonRoot: "${switch_user_non_root}"
258256
)
259-
if (env.updateGithubIssues.toBoolean()) {
257+
if (params.UPDATE_GITHUB_ISSUES) {
260258
updateGitHubIssueLabels(
261259
repoUrl: buildManifestObj.getRepo("${local_component}"),
262260
issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version}",
@@ -268,7 +266,7 @@ pipeline {
268266
} catch (e) {
269267
echo "Error running integtest for component ${local_component}, creating Github issue"
270268
String issueBodyMessage = "The integration test failed at distribution level for component ${local_component}<br>Version: ${version}<br>Distribution: ${distribution}<br>Architecture: ${architecture}<br>Platform: ${platform}<br><br>Please check the logs: ${RUN_DISPLAY_URL}<br><br> * Test-report manifest:*<br> - https://ci.opensearch.org/ci/dbc/${JOB_NAME}/${version}/${buildId}/${platform}/${architecture}/${distribution}/test-results/${BUILD_NUMBER}/integ-test/test-report.yml <br><br> _Note: Steps to reproduce, additional logs and other files can be found within the above test-report manifest. <br>Instructions of this test-report manifest can be found [here](https://github.com/opensearch-project/opensearch-build/tree/main/src/report_workflow#guide-on-test-report-manifest-from-ci)._"
271-
if (env.updateGithubIssues.toBoolean()) {
269+
if (params.UPDATE_GITHUB_ISSUES) {
272270
createGithubIssue(
273271
repoUrl: buildManifestObj.getRepo("${local_component}"),
274272
issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version}",

jenkins/opensearch/integ-test.jenkinsfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ pipeline {
9999
env.platform = buildManifestObj.build.platform
100100
env.artifactPath = buildManifestObj.getArtifactRoot(BUILD_JOB_NAME, buildId)
101101
env.AGENT_LABEL = agent_nodes["${env.platform}_${architecture}"]
102-
env.updateGithubIssues = (params.UPDATE_GITHUB_ISSUES && (env.distribution == 'tar'))
103-
echo "GitHub issue update is set to : ${env.updateGithubIssues.toBoolean()}"
104102
}
105103
}
106104
post {
@@ -210,7 +208,7 @@ pipeline {
210208
localPath: "${WORKSPACE}/${distribution}",
211209
switchUserNonRoot: "${switch_user_non_root}"
212210
)
213-
if (env.updateGithubIssues.toBoolean()) {
211+
if (params.UPDATE_GITHUB_ISSUES) {
214212
updateGitHubIssueLabels(
215213
repoUrl: buildManifestObj.getRepo("${local_component}"),
216214
issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version}",
@@ -222,7 +220,7 @@ pipeline {
222220
} catch (e) {
223221
echo "Error running integtest for component ${local_component}, creating Github issue"
224222
String issueBodyMessage = "The integration test failed at distribution level for component ${local_component}<br>Version: ${version}<br>Distribution: ${distribution}<br>Architecture: ${architecture}<br>Platform: ${platform}<br><br>Please check the logs: ${RUN_DISPLAY_URL}<br><br> * Test-report manifest:*<br> - https://ci.opensearch.org/ci/dbc/${JOB_NAME}/${version}/${buildId}/${platform}/${architecture}/${distribution}/test-results/${BUILD_NUMBER}/integ-test/test-report.yml <br><br> _Note: Steps to reproduce, additional logs and other files can be found within the above test-report manifest. <br>Instructions of this test-report manifest can be found [here](https://github.com/opensearch-project/opensearch-build/tree/main/src/report_workflow#guide-on-test-report-manifest-from-ci)._"
225-
if (env.updateGithubIssues.toBoolean()) {
223+
if (params.UPDATE_GITHUB_ISSUES) {
226224
createGithubIssue(
227225
repoUrl: buildManifestObj.getRepo("${local_component}"),
228226
issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version}",

tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
BuildManifest.getDistribution()
3535
BuildManifest.getArtifactRoot(distribution-build-opensearch-dashboards, 215)
3636
BuildManifest.getArtifactRoot(distribution-build-opensearch, 215)
37-
integ-test.echo(GitHub issue update is set to : false)
3837
integ-test.echo(Version: 3.0.0, VersionOpenSearch: 3.0.0, Agent: Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host, OSD_BuildId: 215, OS_BuildId: 215, Distribution: tar)
3938
integ-test.postCleanup()
4039
postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true})

tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
BuildManifest.getArtifactBuildId()
2828
BuildManifest.getDistribution()
2929
BuildManifest.getArtifactRoot(distribution-build-opensearch, 9010)
30-
integ-test.echo(GitHub issue update is set to : true)
3130
integ-test.postCleanup()
3231
postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true})
3332
integ-test.stage(integ-test, groovy.lang.Closure)

0 commit comments

Comments
 (0)