forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to 1.1.1 with changes in opensearch-project#28
Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
5398941
commit 1230d35
Showing
26 changed files
with
26 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
def call(Map args = [:]) { | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def inputManifestObj = lib.jenkins.InputManifest.new(readYaml(file: args.inputManifest)) | ||
|
||
String stashName = "${args.stashName}" | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.buildManifest)) | ||
def filename = buildManifest.build.getFilename() | ||
def baseUrl = buildManifest.getArtifactRootUrlWithoutDistribution("${PUBLIC_ARTIFACT_URL}", "${JOB_NAME}", "${BUILD_NUMBER}") | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
void call(Map args = [:]) { | ||
|
||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
assembleManifest(args) | ||
uploadArtifacts(args) | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
buildManifest(args) | ||
|
||
String stashName = "${args.stashName}" | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
def call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def inputManifestObj = lib.jenkins.InputManifest.new(readYaml(file: args.inputManifest)) | ||
|
||
buildManifest(args) | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: args.inputManifest)) | ||
def build_qualifier = inputManifest.build.qualifier | ||
def build_number = args.buildNumber ?: "${BUILD_NUMBER}" | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
def sha = getManifestSHA(args) | ||
|
||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.buildManifest)) | ||
echo "Create yum repo metadata and repo file ${args.buildManifest}" | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
def call(Map args = [:]) { | ||
|
||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def bundleManifestObj = lib.jenkins.BundleManifest.new(readYaml(file: args.distManifest)) | ||
|
||
def componentsName = bundleManifestObj.getNames() | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
Closure call() { | ||
|
||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
return { args -> signArtifacts(args) } | ||
|
||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
Map call(Map args = [:]) { | ||
def lib = library(identifier: "[email protected].1", retriever: legacySCM(scm)) | ||
def lib = library(identifier: "[email protected].2", retriever: legacySCM(scm)) | ||
String manifest = args.manifest ?: "manifests/${INPUT_MANIFEST}" | ||
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: manifest)) | ||
dockerImage = inputManifest.ci?.image?.name ?: 'opensearchstaging/ci-runner:ci-runner-centos7-v1' | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
Map call(Map args = [:]) { | ||
def lib = library(identifier: "[email protected].1", retriever: legacySCM(scm)) | ||
def lib = library(identifier: "[email protected].2", retriever: legacySCM(scm)) | ||
String manifest = args.testManifest ?: "manifests/${TEST_MANIFEST}" | ||
def testManifest = lib.jenkins.TestManifest.new(readYaml(file: manifest)) | ||
dockerImage = testManifest.ci?.image?.name ?: 'opensearchstaging/ci-runner:ci-runner-centos7-v1' | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
def call(Map args = [:]) { | ||
def lib = library(identifier: "[email protected].1", retriever: legacySCM(scm)) | ||
def lib = library(identifier: "[email protected].2", retriever: legacySCM(scm)) | ||
|
||
sh "curl -sSL ${args.url} --output ${args.path}" | ||
def buildManifestObj = lib.jenkins.BuildManifest.new(readYaml(file: args.path)) | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ Map call(Map args = [:]) { | |
String manifestSHA = sha1(manifestLock) | ||
echo "Manifest SHA: ${manifestSHA}" | ||
|
||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def inputManifestObj = lib.jenkins.InputManifest.new(readYaml(file: manifestLock)) | ||
String shasRoot = inputManifestObj.getSHAsRoot(jobName) | ||
String manifestSHAPath = "${shasRoot}/${manifestSHA}.yml" | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
|
||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
// fileActions are a closure that accepts a String, filepath with return type void | ||
List<Closure> fileActions = args.fileActions ?: [] | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
|
||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
String manifest = args.manifest ?: "manifests/${INPUT_MANIFEST}" | ||
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: manifest)) | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
*/ | ||
def call(Map args = [:]) { | ||
|
||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def BundleManifestObj = lib.jenkins.BundleManifest.new(readYaml(file: args.bundleManifest)) | ||
def distFile = args.rpmDistribution | ||
def name = BundleManifestObj.build.getFilename() //opensearch-dashboards | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
*/ | ||
def call(Map args = [:]) { | ||
|
||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def bundleManifestURL = args.bundleManifestURL | ||
sh ("curl -sL $bundleManifestURL -o $WORKSPACE/manifest.yml") | ||
def bundleManifest = "$WORKSPACE/manifest.yml" | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
*/ | ||
def call(Map args = [:]) { | ||
|
||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def BundleManifestObj = lib.jenkins.BundleManifest.new(readYaml(file: args.bundleManifest)) | ||
def distFile = args.rpmDistribution | ||
def name = BundleManifestObj.build.getFilename() //opensearch | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
void call(Map args = [:]) { | ||
String jobName = args.jobName ?: 'distribution-build-opensearch' | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.buildManifest)) | ||
String artifactRootUrl = buildManifest.getArtifactRootUrl(jobName, args.buildId) | ||
echo "Artifact root URL: ${artifactRootUrl}" | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def git_repo_url = args.gitRepoUrl ?: 'null' | ||
def git_reference = args.gitReference ?: 'null' | ||
|
||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
String jobName = args.jobName ?: 'distribution-build-opensearch' | ||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.buildManifest)) | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.bundleManifest)) | ||
|
||
install_opensearch_infra_dependencies() | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.buildManifest)) | ||
def minArtifactPath = buildManifest.getMinArtifact() | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
List<Closure> fileActions = args.fileActions ?: [] | ||
String manifest = args.manifest ?: "manifests/${INPUT_MANIFEST}" | ||
|
||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
def lib = library(identifier: '[email protected].1', retriever: legacySCM(scm)) | ||
def lib = library(identifier: '[email protected].2', retriever: legacySCM(scm)) | ||
|
||
def buildManifest = lib.jenkins.BuildManifest.new(readYaml(file: args.buildManifestFileName)) | ||
|
||
|