forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildManifest_Jenkinsfile
40 lines (38 loc) · 1.86 KB
/
BuildManifest_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
/*
* 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('Build Manifest Properties') {
steps {
script {
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: "tests/data/opensearch-build-1.1.0.yml"))
echo buildManifest.build.name
echo buildManifest.build.version
echo buildManifest.build.platform
echo buildManifest.build.architecture
echo buildManifest.build.getFilename()
echo buildManifest.build.getFilenameWithExtension('windows', 'x86')
echo buildManifest.getArtifactRoot('bundle-build', '1')
echo buildManifest.getArtifactRootWithoutDistribution('bundle-build', '1')
echo buildManifest.getArtifactRootUrlWithoutDistribution('https://ci.opensearch.org/ci/dbc', 'bundle-build', '1')
echo buildManifest.getArtifactRootUrl('https://ci.opensearch.org/ci/dbc', 'bundle-build', '1')
echo buildManifest.getUrl('https://ci.opensearch.org/ci/dbc', 'bundle-build', '1')
echo buildManifest.getArtifactUrl('https://ci.opensearch.org/ci/dbc', 'bundle-build', '1')
echo buildManifest.build.getPackageName()
echo buildManifest.getMinArtifact()
echo buildManifest.getIndexFileRoot("distribution-build-opensearch")
echo buildManifest.getCommitId("OpenSearch")
echo buildManifest.getRepo("OpenSearch")
}
}
}
}
}