-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update lib location on jenkins/ to the remote repository opensearch-build-libraries #2652
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2652 +/- ##
=========================================
Coverage 93.94% 93.94%
Complexity 28 28
=========================================
Files 219 219
Lines 4494 4494
Branches 29 29
=========================================
Hits 4222 4222
Misses 266 266
Partials 6 6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Jeff Lu <chunglu@amazon.com>
Signed-off-by: Jeff Lu <chunglu@amazon.com>
@jordarlu Groovy tests are failing. I saw this locally as well. Looks like the the below block of code needs change |
Signed-off-by: Jeff Lu <chunglu@amazon.com>
Signed-off-by: Jeff Lu <chunglu@amazon.com>
…in BuildPipelineTest Signed-off-by: Jeff Lu <chunglu@amazon.com>
Hi, we have all the relevant Test groovy files updated with using override to take lib version '1.0.0' on top of default version 'main' stated in BuildPipelineTest.groovy. If you agree, @gaiksaya @prudhvigodithi , we can open another PR to update ./test/* and the rest who are still using the lib at local/opensearch-build repo. |
Hi @jordarlu , I believe the changes to |
sounds good, @gaiksaya , let me do that and update! Thanks! |
…iles Signed-off-by: Jeff Lu <chunglu@amazon.com>
Hi, @gaiksaya , all relevant files in opensearch-build repo should be reflected with the new lib at opensearch-build-libraries repo. Please have a review, and if we are good to merge and move on to clean the vars at opensearch-build repo. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enhancement to have this version number in some file from where it can be picked up and each jenkinsFile will default to that but can override to new version if required. More details:
opensearch-project/opensearch-build-libraries#7 (comment)
@opensearch-project/engineering-effectiveness Once this is merged we need to keep check on the Jenkins jobs that might break.
@@ -51,6 +52,8 @@ abstract class BuildPipelineTest extends CommonPipelineTest { | |||
binding.setVariable('scm', {}) | |||
|
|||
helper.registerAllowedMethod("legacySCM", [Closure.class], null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we remove legacy SCM since we dont use it anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep .. I think so ... as we are not going back to use legacySCM anymore ... let me go ahead and remove it, and then rerun the test .. thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we cannot remove this helper.registerAllowedMethod("legacySCM", [Closure.class], null) at the moment yet although the job does load the shared lib from the remote opensearch-build-libraries.git
I think when the job downloads/copies the remote lib (via the modernSCM method) from the opensearch-build-libraries repo into the local, and then finds the lib version is with "20211123" (for now), it then requires the legacySCM method to process.
Maybe we can keep the legacySCM regsiterAllowMethod for now, and come back to clean it up after we solve opensearch-project/opensearch-build-libraries#7 ? Thanks.
Note:
In order to make it run correctly in tests:
|
Signed-off-by: Jeff Lu <chunglu@amazon.com>
…uild-libraries (opensearch-project#2652) * update lib location Signed-off-by: Jeff Lu <chunglu@amazon.com> * issue_2646 Signed-off-by: Jeff Lu <chunglu@amazon.com> * update new Lib buildPipelineTest.groovy Signed-off-by: Jeff Lu <chunglu@amazon.com> * update regression files Signed-off-by: Jeff Lu <chunglu@amazon.com> * update test lib with override and setting up main as default version in BuildPipelineTest Signed-off-by: Jeff Lu <chunglu@amazon.com> * update lib location on tests/jenkins/jobs and associated regression files Signed-off-by: Jeff Lu <chunglu@amazon.com> * remove unnecessary import statement Signed-off-by: Jeff Lu <chunglu@amazon.com> Signed-off-by: Jeff Lu <chunglu@amazon.com> Signed-off-by: Monu Singh <msnghgw@amazon.com>
Description
Updating lib location on all jenkinsfiles/jobs at jenkins/ folder to use the lib located at new opensearch-build-libraries repository.
#2646
Issues Resolved
This PR is to update lib location of existing jenkinsfile to use new lib location at remote opensearch-build-libraries repository.
The update includes jenkinsfiles and regression files and BuildPipelineTest.groovy
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.