Skip to content
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

Merged
merged 17 commits into from
Dec 21, 2023

Conversation

dtwaddle2-r7
Copy link
Contributor

@dtwaddle2-r7 dtwaddle2-r7 commented Dec 20, 2023

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

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have updated the documentation accordingly (or changes are not required).
  • I have added tests to cover my changes (or new tests are not required).
  • All new and existing tests passed.

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?
Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Contributor Author

@dtwaddle2-r7 dtwaddle2-r7 Dec 21, 2023

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!

@dtwaddle2-r7 dtwaddle2-r7 merged commit c1b864b into main Dec 21, 2023
17 checks passed
@dtwaddle2-r7 dtwaddle2-r7 deleted the LEDO-125-jenkins-eks-migration branch December 21, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants