-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --component support for jenkins build pipelines (From PR [2095]) (#…
…2100) * Added tests Signed-off-by: pgodithi <[email protected]> * Add tests without component parameter and for rpm distribution. Signed-off-by: Zelin Hao <[email protected]> Co-authored-by: Zelin Hao <[email protected]>
- Loading branch information
1 parent
c8a9b1f
commit fd028ed
Showing
7 changed files
with
104 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package jenkins.tests | ||
|
||
import org.junit.* | ||
|
||
class TestbuildManifestVar extends BuildPipelineTest { | ||
|
||
@Test | ||
void testbuildManifest() { | ||
super.testPipeline("tests/jenkins/jobs/BuildShManifest_Jenkinsfile") | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pipeline { | ||
agent none | ||
stages { | ||
stage('Test build manifest jenkins var') { | ||
steps { | ||
script { | ||
buildManifest( | ||
inputManifest: "tests/jenkins/data/opensearch-2.0.0.yml", | ||
distribution: "tar", | ||
snapshot: true | ||
) | ||
buildManifest( | ||
componentName: "job-scheduler", | ||
inputManifest: "tests/jenkins/data/opensearch-2.0.0.yml", | ||
distribution: "tar", | ||
snapshot: true | ||
) | ||
buildManifest( | ||
componentName: "common-utils", | ||
inputManifest: "tests/jenkins/data/opensearch-2.0.0.yml", | ||
distribution: "rpm", | ||
snapshot: true | ||
) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
BuildShManifest_Jenkinsfile.run() | ||
BuildShManifest_Jenkinsfile.pipeline(groovy.lang.Closure) | ||
BuildShManifest_Jenkinsfile.echo(Executing on agent [label:none]) | ||
BuildShManifest_Jenkinsfile.stage(Test build manifest jenkins var, groovy.lang.Closure) | ||
BuildShManifest_Jenkinsfile.script(groovy.lang.Closure) | ||
BuildShManifest_Jenkinsfile.buildManifest({inputManifest=tests/jenkins/data/opensearch-2.0.0.yml, distribution=tar, snapshot=true}) | ||
buildManifest.sh(./build.sh tests/jenkins/data/opensearch-2.0.0.yml -d tar --snapshot) | ||
BuildShManifest_Jenkinsfile.buildManifest({componentName=job-scheduler, inputManifest=tests/jenkins/data/opensearch-2.0.0.yml, distribution=tar, snapshot=true}) | ||
buildManifest.sh(./build.sh tests/jenkins/data/opensearch-2.0.0.yml -d tar --component job-scheduler --snapshot) | ||
BuildShManifest_Jenkinsfile.buildManifest({componentName=common-utils, inputManifest=tests/jenkins/data/opensearch-2.0.0.yml, distribution=rpm, snapshot=true}) | ||
buildManifest.sh(./build.sh tests/jenkins/data/opensearch-2.0.0.yml -d rpm --component common-utils --snapshot) |
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