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

Update Release CodePipeline to update and upload agentVersionV2-<branch>.json file #3680

Merged
merged 1 commit into from
May 8, 2023

Conversation

mye956
Copy link
Contributor

@mye956 mye956 commented May 8, 2023

Summary

This PR will modify our current release CodePipeline project to generate and copy over a new release config file called agentVersionV2-.json file which will be used in our release process in the near future. The <branch> refers to the tracking branch that will be used. (e.g. agentVersionV2-featureBranch.json), in this case it'll be dev.

(Note: This duplicates PR #3611 which has already been approved and merged. We'll have to manually update the CodePipeline project )

Implementation details

build-infrastructure/release-pipeline-stack.yml

  • Added a new parameter called GithubSourceBranchName which will be passed in as an environment variable for the MakeJSON and Copy stages in order to refer to the tracking branch
  • Updated the policy for the MakeJSON CodeBuild service role to have permission to access the release bucket

buildspecs/copy.yml

  • Copying over the new agentVersionV2-.json file along with the rest of the configs/artifacts

buildspecs/release-config.yml

  • Grabbing an existing/older version of agentVersionv2-.json file from the release bucket (Note: Will need to manually create one first)
  • Updating the agentVersionv2-.json file only if there's a new agent release version

(Note: These changes will need to be manually applied to the CodePipeline project)

Testing

The release CodePipeline was replicated within my personal dev account along with these changes applied to it. No issues occurred while kicking off the release CodePipeline.

Description for the changelog

  • Feature: Add new release config file called agentVersionV2-.json to our release CodePipeline project

Licensing

Related PR

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mye956 mye956 added the bot/test label May 8, 2023
@mye956 mye956 marked this pull request as ready for review May 8, 2023 17:57
@mye956 mye956 requested a review from a team as a code owner May 8, 2023 17:57
@mye956 mye956 merged commit 05df157 into aws:dev May 8, 2023
@Realmonia Realmonia mentioned this pull request May 9, 2023
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