-
Notifications
You must be signed in to change notification settings - Fork 8
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
LEDO-125: Adding support for Jenkins in EKS #17
Conversation
…cog-ruby into LEDO-125-jenkins-eks-migration
recog.gemspec
Outdated
gem_public_cert = ENV['GEM_PUBLIC_CERT'] | ||
gem_private_key = ENV['GEM_PRIVATE_KEY'] | ||
|
||
if !gem_public_cert.nil? && !gem_private_key.nil? |
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.
not nil is sorta a double negative. I think you can just do
if gem_public_cert && gem_private_key
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.
@pdeardorff-r7's guidance is in alignment with
RuboCop: No non-nil Checks.
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.
Ah, I tested both usages locally and saw mention that there may be some differences between them. so thought adding the nil check would be safer. Thanks for pointing that out!
Description
Modified the recog submodule to use HTTPS, as the current Jenkins implementation does not appear to support SSH, and was preventing it from pulling the repo.
Updates the recog submodule and also adds the ability to define the locations for a public cert and private key used for signing. Then the version has also been automatically bumped due to testing the release process.
Motivation and Context
These changes help support the new Jenkins release process. The new approach uses self-signed certs.
https://issues.corp.rapid7.com/browse/LEDO-125
How Has This Been Tested?
The actual job being ran is present within an internal shared-library, and is able to run on each branch independently. So was able to run and validate each stage of the job from this branch.
Types of changes
Checklist: