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

Jenkinsfile.release: make AWS AMI replication optional #132

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

dustymabe
Copy link
Member

And default to true, but make the pipeline default to not replicate
for non-production streams.

@dustymabe
Copy link
Member Author

ok you can specify a boolean var for false like this:

oc start-build fedora-coreos-pipeline-release -e STREAM=bodhi-updates -e VERSION=30.20190911.dev.0 -e AWS_REPLICATION=

@dustymabe
Copy link
Member Author

ok I switched to using strings for the parameters. Now ready for review.

@@ -55,6 +55,7 @@ podTemplate(cloud: 'openshift', label: 'coreos-assembler', yaml: pod, defaultCon

stage('AWS Kola Run') {
utils.shwrap("""
export AWS_CONFIG_FILE=\${AWS_FCOS_KOLA_BOT_CONFIG}
Copy link
Contributor

Choose a reason for hiding this comment

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

Previously the AWS config was pre-validated by nature of the build having been uploaded with the credentials being used to test. With this change to using a different config we should validate that it exists before attempting this step.

Copy link
Member Author

Choose a reason for hiding this comment

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

This commit was part of #130 - I'll address it in a followup PR.

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

LGTM, tiny optional comments.

Jenkinsfile Outdated
choices: (['false', 'true']),
defaultValue: 'false',
description: 'Force AWS AMI replication for non-production',
required: false)
Copy link
Member

Choose a reason for hiding this comment

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

Minor/optional: required: false is the default

// Since we are only running this stage for non-production (i.e. mechanical
// and development) builds we'll default to not doing AWS AMI replication.
// That can be overridden by the user setting the AWS_REPLICATION parameter
// to true, overriding the default (false).
Copy link
Member

Choose a reason for hiding this comment

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

Minor/optional: seems like this would belong better near the default: 'false' line?

Copy link
Member Author

Choose a reason for hiding this comment

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

going to leave it where it is for now. I know it's just comments, but I don't want to re-test.

Copy link
Member Author

Choose a reason for hiding this comment

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

err rather I don't have the ability to re-test right now.

@dustymabe dustymabe marked this pull request as ready for review September 12, 2019 15:59
And default to true, but make the pipeline default to not replicate
for non-production streams. We use strings and not boolean parameters
because passing booleans via `oc start-build -e` is non-trivial.
@dustymabe dustymabe merged commit 5967fb6 into coreos:master Sep 12, 2019
@dustymabe dustymabe deleted the replicate branch September 12, 2019 16:00
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.

3 participants