-
Notifications
You must be signed in to change notification settings - Fork 111
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
aws-test: Drop need for parameters, just use latest/ #312
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,7 @@ node(NODE) { | |
string(credentialsId: params.AWS_CI_ACCOUNT, variable: 'AWS_CI_ACCOUNT'), | ||
]) { | ||
sh """ | ||
amijson=${dirpath}/aws-${AWS_REGION}-smoketested.json | ||
amijson=${dirpath}/aws-${AWS_REGION}.json | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, we decided to add the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we don't upload it at all if it doesn't pass the smoketest, I think I'm OK with omitting it. Kinda bikeshed though, I'm fine keeping it if someone feels strongly about it. |
||
ore aws upload --region ${AWS_REGION} \ | ||
--ami-name 'rhcos_dev_${commit[0..6]}' \ | ||
--ami-description 'Red Hat CoreOS ${version} (${commit})' \ | ||
|
@@ -251,13 +251,7 @@ node(NODE) { | |
parallel par_stages; par_stages = [:] | ||
|
||
// Build the job responsible for testing and publishing the ami | ||
def ami_intermediate = utils.sh_capture("jq -r .HVM ${dirpath}/aws-${AWS_REGION}-smoketested.json") | ||
build job: 'coreos-rhcos-aws-test', wait: false, parameters: [ | ||
string(name: 'ami_intermediate', value: "${ami_intermediate}"), | ||
string(name: 'version', value: "${version}"), | ||
string(name: 'dirpath', value: "${dirpath}"), | ||
string(name: 'aws_type', value: "t2.small") | ||
] | ||
build job: 'coreos-rhcos-aws-test', wait: false | ||
} | ||
} catch (Throwable e) { | ||
currentBuild.result = 'FAILURE' | ||
|
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.
I think we wanted to keep the configurable for potential future use, but again I'm ok with changing it to be hard defined to simplify things
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.
Ahh OK, in that case we can make it a proper parameter. Though until then, I'd rather not make
define_properties()
more complex until we need it?