Open
Description
Is your feature request related to a problem? Please describe
There are multiple bash scripts that are part of the root folder, there is an already exists scripts/ folder. It would be clean to move the .sh
files from the root to folder and store them under scripts/
.
Describe the solution you'd like
-
Move all the
.sh
scripts that involve the workflows toscripts/
folder. -
Once migrated call the
.sh
file from the script folder.
Example forrelease_notes.sh
:
Instead of./release_notes.sh check manifests/2.2.0/opensearch-2.2.0.yml --date 2022-07-26
Run:./scripts/release_notes.sh check manifests/2.2.0/opensearch-2.2.0.yml --date 2022-07-26
-
To achieve this move
run.sh
,Pipfile Pipfile.lock
toscripts/
folder. -
Modify the
.sh
scripts as follows
Examplerelease_notes.sh
#!/bin/bash
# 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.
set -e
DIR="$(dirname "$0")"
"$DIR/run.sh" "$DIR/../src/run_releasenotes_check.py" $@
Describe alternatives you've considered
No response
Additional context
No response
Acceptance Criteria
- Move the bash scripts to a specific folder.
- Update the libraries to use the scripts from this folder (Example https://github.com/opensearch-project/opensearch-build-libraries/blob/main/vars/assembleManifest.groovy#L15)
- Update all the jenkinsfiles (part of the build repo and other repos used for one click release process) with the version of the library that use the scripts from this folder.