forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update smoke test jenkinsfile to accommodate rpm & deb
Signed-off-by: Zelin Hao <[email protected]>
- Loading branch information
Showing
5 changed files
with
3,699 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
|
||
lib = library(identifier: '[email protected].0', retriever: modernSCM([ | ||
lib = library(identifier: '[email protected].1', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
@@ -105,27 +105,28 @@ pipeline { | |
steps { | ||
script { | ||
currentBuild.description = "$TEST_MANIFEST, $version, $architecture, $platform, $buildId, $distribution" | ||
String switch_user_non_root = (distribution.equals('rpm') || distribution.equals('deb')) ? 'true' : 'false' | ||
echo "switch_user_non_root: ${switch_user_non_root}" | ||
|
||
try { | ||
stage("Smoke_tests") { | ||
checkout scm | ||
sleep 10 | ||
downloadBuildManifest( | ||
url: BUILD_MANIFEST_URL, | ||
path: BUILD_MANIFEST | ||
) | ||
checkout scm | ||
sleep 10 | ||
downloadBuildManifest( | ||
url: BUILD_MANIFEST_URL, | ||
path: BUILD_MANIFEST | ||
) | ||
|
||
def buildManifestObj = lib.jenkins.BuildManifest.new(readYaml(file: BUILD_MANIFEST)) | ||
def testManifestObj = lib.jenkins.TestManifest.new(readYaml(file: "manifests/${TEST_MANIFEST}")) | ||
def buildManifestObj = lib.jenkins.BuildManifest.new(readYaml(file: BUILD_MANIFEST)) | ||
def testManifestObj = lib.jenkins.TestManifest.new(readYaml(file: "manifests/${TEST_MANIFEST}")) | ||
|
||
sh('rm -rf test-results') | ||
runSmokeTestScript( | ||
jobName: "$BUILD_JOB_NAME", | ||
buildManifest: "$BUILD_MANIFEST", | ||
testManifest: "manifests/${TEST_MANIFEST}", | ||
buildId: "${buildId}" | ||
) | ||
} | ||
sh('rm -rf test-results') | ||
runSmokeTestScript( | ||
jobName: "$BUILD_JOB_NAME", | ||
buildManifest: "$BUILD_MANIFEST", | ||
testManifest: "manifests/${TEST_MANIFEST}", | ||
buildId: "${buildId}", | ||
switchUserNonRoot: "${switch_user_non_root}" | ||
) | ||
} catch (e) { | ||
throw new Exception("Error running Smoke test", e) | ||
} finally { | ||
|
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.