forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInputManifest_Jenkinsfile
45 lines (43 loc) · 1.63 KB
/
InputManifest_Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Copyright OpenSearch Contributors
* 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.
*/
def lib = library("jenkins")
pipeline {
agent none
stages {
stage('input manifest 1.1.0') {
steps {
script {
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: "tests/data/os-template-1.1.0.yml"))
echo inputManifest.ci
echo inputManifest.build.name
echo inputManifest.build.version
echo inputManifest.build.getFilename()
echo inputManifest.getSHAsRoot('bundle-build')
}
}
}
stage('input manifest 1.2.0') {
steps {
script {
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: "tests/data/os-template-1.2.0.yml"))
echo inputManifest.ci.image.name
echo inputManifest.ci.image.args
echo inputManifest.build.name
echo inputManifest.build.version
echo inputManifest.build.getFilename()
echo inputManifest.getSHAsRoot('bundle-build')
def componentNames = inputManifest.getNames()
echo componentNames.join(', ')
echo inputManifest.getRepo('OpenSearch')
echo inputManifest.getRepo('dashboards-reports')
}
}
}
}
}