-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10fef48
commit 8f977e0
Showing
6 changed files
with
86 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
pipeline { | ||
agent none | ||
stages { | ||
stage('Test build manifest jenkins var') { | ||
steps { | ||
script { | ||
try { | ||
def status = buildManifest( | ||
componentName: "job-scheduler", | ||
inputManifest: "manifests/2.0.0/opensearch-2.0.0.yml", | ||
distribution: "tar", | ||
snapshot: true | ||
) | ||
if (status > 0) { | ||
currentBuild.result = 'UNSTABLE' | ||
}else { | ||
currentBuild.result = 'SUCCESS' | ||
} | ||
} catch (Exception err) { | ||
println(err) | ||
currentBuild.result = 'FAILURE' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
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,7 @@ | ||
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({componentName=job-scheduler, inputManifest=manifests/2.0.0/opensearch-2.0.0.yml, distribution=tar, snapshot=true}) | ||
buildManifest.sh(./build.sh manifests/2.0.0/opensearch-2.0.0.yml -d tar --component job-scheduler --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