From 67883aa71e70b1b0e6ba555a41b6b365c338254d Mon Sep 17 00:00:00 2001 From: owaiskazi19 Date: Fri, 9 Feb 2024 03:08:21 +0000 Subject: [PATCH 1/2] Copies zips from local staging to m2 Signed-off-by: owaiskazi19 --- scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 892e8d56..644e1ad0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -76,4 +76,5 @@ cp ./build/distributions/*.zip $OUTPUT/plugins ./gradlew publishAllPublicationsToStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER ./gradlew publishPluginZipPublicationToZipStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER mkdir -p $OUTPUT/maven/org/opensearch -cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch \ No newline at end of file +cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch +cp -r ./build/local-staging-repo/org/opensearch/plugin/opensearch-job-scheduler ~/.m2/repository/org/opensearch/plugin/ \ No newline at end of file From 125523ba97a02906c3b15bc6a0ca0a7b9e747dff Mon Sep 17 00:00:00 2001 From: owaiskazi19 Date: Fri, 9 Feb 2024 03:21:18 +0000 Subject: [PATCH 2/2] Added comment Signed-off-by: owaiskazi19 --- scripts/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.sh b/scripts/build.sh index 644e1ad0..3f159869 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -77,4 +77,5 @@ cp ./build/distributions/*.zip $OUTPUT/plugins ./gradlew publishPluginZipPublicationToZipStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER mkdir -p $OUTPUT/maven/org/opensearch cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch +# Needed the below for https://github.com/opensearch-project/skills/issues/178. TODO: https://github.com/opensearch-project/job-scheduler/issues/583 cp -r ./build/local-staging-repo/org/opensearch/plugin/opensearch-job-scheduler ~/.m2/repository/org/opensearch/plugin/ \ No newline at end of file