-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-59180] Allow AMI filtering instead of AMI ID
Currently whenever the image is updated the template configuration must also be updated. Rather than requiring the AMI ID to be specified, allow providing filters that can be passed to `describeImages` so that the latest image matching some attributes can be used.
- Loading branch information
1 parent
a450ef5
commit 759e1fd
Showing
9 changed files
with
436 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-ami.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div> | ||
A specific image ID to use for instances. Alternatively, the image can | ||
be queried by criteria using the AMI Owners, Users and Filters options. | ||
|
||
<br/> | ||
|
||
See the <code>ImageId</code> parameter in the AWS | ||
<a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html"> | ||
describeImages API documentation | ||
</a> | ||
for details. | ||
</div> |
16 changes: 16 additions & 0 deletions
16
src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-amiFilters.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div> | ||
Limits the AMI to be used by attributes of the image. Each filter is a | ||
name and values pair. The filter values are a whitespace separated | ||
list allowing the attribute to match against multiple values. Values | ||
can be quoted to preserve embedded whitespace. Any quote characters | ||
must be escaped with <code>\</code>. The latest image by creation date | ||
will be used when multiple images are matched. | ||
|
||
<br/> | ||
|
||
See the <code>Filter</code> parameter in the AWS | ||
<a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html"> | ||
describeImages API documentation | ||
</a> | ||
for details. | ||
</div> |
14 changes: 14 additions & 0 deletions
14
src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-amiOwners.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div> | ||
Limits the AMI to images owned by the specified AWS accounts. The | ||
value is a whitespace separated list allowing images to match against | ||
multiple accounts. The latest image by creation date will be used when | ||
multiple images are matched. | ||
|
||
<br/> | ||
|
||
See the <code>Owner</code> parameter in the AWS | ||
<a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html"> | ||
describeImages API documentation | ||
</a> | ||
for details. | ||
</div> |
14 changes: 14 additions & 0 deletions
14
src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-amiUsers.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div> | ||
Limits the AMI to images executable by the specified AWS accounts. The | ||
value is a whitespace separated list allowing images to match against | ||
multiple accounts. The latest image by creation date will be used when | ||
multiple images are matched. | ||
|
||
<br/> | ||
|
||
See the <code>ExecutableBy</code> parameter in the AWS | ||
<a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html"> | ||
describeImages API documentation | ||
</a> | ||
for details. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.