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

Add git credential fetch support, minor bug fixes #2057

Merged

Conversation

kotwanikunal
Copy link
Member

Signed-off-by: Kunal Kotwani kkotwani@amazon.com

Description

  • Updated the github token fetch mechanism to use the github bot fetching mechanism
  • Minor Fix: Added stackNameSuffix to prevent two builds with the same build id use the same infra stack
  • Minor Fix: Fixed typo for config under the perf test script

Issues Resolved

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.

Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
@kotwanikunal kotwanikunal requested a review from a team as a code owner April 29, 2022 05:11
@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2022

Codecov Report

Merging #2057 (4cf7d2a) into main (6c4f856) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2057   +/-   ##
=========================================
  Coverage     94.23%   94.23%           
  Complexity       25       25           
=========================================
  Files           198      198           
  Lines          3902     3902           
  Branches         29       29           
=========================================
  Hits           3677     3677           
  Misses          219      219           
  Partials          6        6           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c4f856...4cf7d2a. Read the comment docs.

Copy link
Member

@ankitkala ankitkala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

].join(' '))
String stackNameSuffix = isNullOrEmpty(args.stackNameSuffix) ? 'perf-test' : args.stackNameSuffix

withCredentials([usernamePassword(credentialsId: "${GITHUB_BOT_TOKEN_NAME}", usernameVariable: 'GITHUB_USER', passwordVariable: 'GITHUB_TOKEN')]) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see anywhere define the actual token id, are you setting it in the jenkins global env?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is defined as a Jenkins global env var. More usages -

withCredentials([usernamePassword(credentialsId: "${GITHUB_BOT_TOKEN_NAME}", usernameVariable: 'GITHUB_USER', passwordVariable: 'GITHUB_TOKEN')]) {
,
withCredentials([usernamePassword(credentialsId: "${GITHUB_BOT_TOKEN_NAME}", usernameVariable: 'GITHUB_USER', passwordVariable: 'GITHUB_TOKEN')]) {

@kotwanikunal
Copy link
Member Author

@opensearch-project/engineering-effectiveness I need some help merging this in. I do not currently have write permissions to this repo.

@peterzhuamazon peterzhuamazon merged commit a230a21 into opensearch-project:main May 2, 2022
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