forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildManifest_Jenkinsfile_component_no_artifact
35 lines (33 loc) · 1.48 KB
/
BuildManifest_Jenkinsfile_component_no_artifact
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
/*
* 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('Build Manifest Properties') {
steps {
script {
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: "tests/data/opensearch-dashboards-1.2.0-build.yml"))
echo buildManifest.build.name
echo buildManifest.build.version
echo buildManifest.build.platform
echo buildManifest.build.architecture
echo buildManifest.build.getFilename()
echo buildManifest.getArtifactRoot('bundle-build', '1')
echo buildManifest.getArtifactRootWithoutDistribution('bundle-build', '1')
echo buildManifest.getArtifactRootUrl('https://ci.opensearch.org/ci/dbc', 'bundle-build', '1')
echo buildManifest.getArtifactRootUrlWithoutDistribution('https://ci.opensearch.org/ci/dbc', 'bundle-build', '1')
echo buildManifest.build.getPackageName()
echo buildManifest.getMinArtifact()
echo buildManifest.getCommitId("OpenSearch-Dashboards")
echo buildManifest.getRepo("OpenSearch-Dashboards")
}
}
}
}
}