forked from opensearch-project/opensearch-build
-
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.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
13 changed files
with
39 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
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
# 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. | ||
|
||
http://staging-artifacts.cloudfront.net/* | ||
https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/* | ||
http://public.ecr.aws/data-prepper-container-repository | ||
https://www.dummy.com/* | ||
# Too many redirects in playground.opensearch.org due to not having user agent information | ||
# https://github.com/lycheeverse/lychee/issues/715 | ||
https://playground.opensearch.org/* | ||
file://* | ||
https://build.ci.opensearch.org/generic-webhook-trigger/invoke* |
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
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ pipeline { | |
choice( | ||
choices: ['Match Build Manifest', 'Update to Recent Commits'], | ||
name: 'MANIFEST_LOCK_ACTION', | ||
description: 'The manifest lock action to choose.<br>Match Build Manifest: Will update the manifest with commit ID from release candidate build manifest.<br>Update to Recent Commits: Will update the manifst with component repo release branch head commit', | ||
description: 'The manifest lock action to choose.<br>Match Build Manifest: Will update the manifest with commit ID from release candidate build manifest.<br>Update to Recent Commits: Will update the manifest with component repo release branch head commit.', | ||
) | ||
string( | ||
name: 'COMPONENTS', | ||
|
@@ -90,7 +90,7 @@ pipeline { | |
sh """ | ||
yq eval -i '.' manifests/${params.RELEASE_VERSION}/${productName}-${params.RELEASE_VERSION}.yml | ||
sed -i '1s/^/---\\n/' manifests/${params.RELEASE_VERSION}/${productName}-${params.RELEASE_VERSION}.yml | ||
""" | ||
""" | ||
} | ||
updateManifest("opensearch", params.OPENSEARCH_RELEASE_CANDIDATE) | ||
updateManifest("opensearch-dashboards", params.OPENSEARCH_DASHBOARDS_RELEASE_CANDIDATE) | ||
|
@@ -139,13 +139,13 @@ pipeline { | |
git config user.email "[email protected]" | ||
git config user.name "prudhvigodithi" | ||
git checkout -b manifest-lock | ||
""" | ||
""" | ||
def status = sh(returnStdout: true, script: 'git status --porcelain') | ||
if (status) { | ||
sh """ | ||
git add . && git commit -sm "Manifest Commit Lock" | ||
git push origin manifest-lock --force | ||
gh pr create --title '[${params.RELEASE_VERSION}] Manifest Commit Lock' --body 'Manifest Commit Lock for Release ${params.RELEASE_VERSION} ' -H manifest-lock -B main | ||
gh pr create --title '[${params.RELEASE_VERSION}] Manifest Commit Lock, ${params.MANIFEST_LOCK_ACTION}' --body 'Manifest Commit Lock for Release ${params.RELEASE_VERSION} ' -H manifest-lock -B main | ||
""" | ||
} else { | ||
println 'Nothing to commit!' | ||
|
Oops, something went wrong.