Skip to content

Commit

Permalink
Run integtest for components present in test manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
  • Loading branch information
gaiksaya committed Jan 12, 2024
1 parent 31cc1ef commit cd76755
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jenkins/opensearch/integ-test.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
* compatible open source license.
*/

lib = library(identifier: 'jenkins@5.11.1', retriever: modernSCM([
lib = library(identifier: 'jenkins@add-getNames', retriever: modernSCM([

$class: 'GitSCMSource',
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
remote: 'https://github.com/gaiksaya/opensearch-build-libraries.git',
]))

def docker_images = [
Expand Down Expand Up @@ -93,7 +93,8 @@ pipeline {
)

def buildManifestObj = lib.jenkins.BuildManifest.new(readYaml(file: BUILD_MANIFEST))
def componentList = COMPONENT_NAME ? COMPONENT_NAME.trim().split(" ") as List : buildManifestObj.getNames()
def testManifestObj = lib.jenkins.TestManifest.new(readYaml(file: TEST_MANIFEST))
def componentList = COMPONENT_NAME ? COMPONENT_NAME.trim().split(" ") as List : testManifestObj.getComponentNames()
env.architecture = buildManifestObj.getArtifactArchitecture()
env.platform = buildManifestObj.getArtifactPlatform()
env.buildId = buildManifestObj.getArtifactBuildId()
Expand Down Expand Up @@ -127,7 +128,8 @@ pipeline {
)

def buildManifestObj = lib.jenkins.BuildManifest.new(readYaml(file: BUILD_MANIFEST))
def componentDefaultList = buildManifestObj.getNames()
def testManifestObj = lib.jenkins.TestManifest.new(readYaml(file: TEST_MANIFEST))
def componentDefaultList = testManifestObj.getNames()
def componentList = COMPONENT_NAME ? COMPONENT_NAME.trim().split(" ") as List : componentDefaultList
String switch_user_non_root = (distribution.equals('rpm') || distribution.equals('deb')) ? 'true' : 'false'
echo "switch_user_non_root: ${switch_user_non_root}"
Expand Down

0 comments on commit cd76755

Please sign in to comment.