-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Prudhvi Godithi <[email protected]>
- Loading branch information
1 parent
5124b1a
commit 86684b5
Showing
10 changed files
with
193 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
@@ -72,6 +71,11 @@ pipeline { | |
description: 'If true results will create / update / close github issues', | ||
defaultValue: false | ||
) | ||
string( | ||
name: 'RC_NUMBER', | ||
description: 'The RC build count. Default is 0 which means its not an RC build.', | ||
defaultValue: '0' | ||
) | ||
booleanParam( | ||
name: 'VALIDATE_ARTIFACTS', | ||
description: 'If true the provided artifacts are validated before triggering integ-tests else skip the validation stage', | ||
|
@@ -356,10 +360,26 @@ pipeline { | |
componentName: "${COMPONENT_NAME}", | ||
) | ||
echo("Download report manifest from https://ci.opensearch.org/ci/dbc/integ-test/${env.version}/${env.buildId}/${env.platform}/${env.architecture}/${env.distribution}/test-results/${env.BUILD_NUMBER}/integ-test/test-report.yml") | ||
stash includes: 'test-report.yml', name: "test-report-$BUILD_NUMBER" | ||
archiveArtifacts artifacts: 'test-report.yml' | ||
} | ||
} | ||
} | ||
node(agent_nodes['linux_x64']) { | ||
unstash "test-report-$BUILD_NUMBER" | ||
def rc = (params.RC_NUMBER.toInteger() > 0) | ||
publishIntegTestResults( | ||
version: env.version, | ||
distributionBuildNumber: env.buildId, | ||
distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/${env.BUILD_JOB_NAME}/detail/${env.BUILD_JOB_NAME}/${env.buildId}/pipeline", | ||
rc: rc, | ||
rcNumber: env.RC_NUMBER, | ||
platform: env.platform, | ||
architecture: env.architecture, | ||
distribution: env.distribution, | ||
testReportManifestYml: "test-report.yml" | ||
) | ||
} | ||
} | ||
postCleanup() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
@@ -72,6 +71,11 @@ pipeline { | |
description: 'If true results will create / update / close github issues', | ||
defaultValue: false | ||
) | ||
string( | ||
name: 'RC_NUMBER', | ||
description: 'The RC build count. Default is 0 which means its not an RC build.', | ||
defaultValue: '0' | ||
) | ||
booleanParam( | ||
name: 'VALIDATE_ARTIFACTS', | ||
description: 'If true the provided artifacts are validated before triggering integ-tests else skip the validation stage', | ||
|
@@ -307,10 +311,26 @@ pipeline { | |
componentName: "${COMPONENT_NAME}", | ||
) | ||
echo("Download report manifest from https://ci.opensearch.org/ci/dbc/integ-test/${env.version}/${env.buildId}/${env.platform}/${env.architecture}/${env.distribution}/test-results/${env.BUILD_NUMBER}/integ-test/test-report.yml") | ||
stash includes: 'test-report.yml', name: "test-report-$BUILD_NUMBER" | ||
archiveArtifacts artifacts: 'test-report.yml' | ||
} | ||
} | ||
} | ||
node(agent_nodes['linux_x64']) { | ||
unstash "test-report-$BUILD_NUMBER" | ||
def rc = (params.RC_NUMBER.toInteger() > 0) | ||
publishIntegTestResults( | ||
version: env.version, | ||
distributionBuildNumber: env.buildId, | ||
distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/${env.BUILD_JOB_NAME}/detail/${env.BUILD_JOB_NAME}/${env.buildId}/pipeline", | ||
rc: rc, | ||
rcNumber: env.RC_NUMBER, | ||
platform: env.platform, | ||
architecture: env.architecture, | ||
distribution: env.distribution, | ||
testReportManifestYml: "test-report.yml" | ||
) | ||
} | ||
} | ||
postCleanup() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.