Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-11083] Allow adding a suffix to generated AVD names.
This makes it possible to use the exact same emulator config in two jobs without one job having to block waiting for the other job to finish using the emulator. This patch comes from pull requests #9 and #33, with some additional changes to documentation and assuring that generated AVD names are valid, despite the suffix field being free text.
- Loading branch information
Showing
5 changed files
with
63 additions
and
33 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
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
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,19 @@ | ||
Should be empty or a custom suffix for the AVD name.<br/> | ||
e.g. "<code>mySuffix</code>" or "<code>withPdf</code>" | ||
<p> | ||
If this field is left blank, no custom suffix will be added to the AVD name that | ||
this plugin generates when automatically creating an emulator.<br/> | ||
If a value is set, a suffix will be added to the AVD name, with any invalid characters | ||
replaced by a hyphen (as AVD names may only contain [a-z A-Z 0-9 . _ -]). | ||
</p> | ||
<p> | ||
This allows you to run multiple emulators with the same configuration in parallel on the | ||
same build machine.<br/> | ||
Normally, if you create two jobs with the same emulator configuration, only one of those | ||
jobs will run at a time — as the other job is using the emulator. But by setting a | ||
custom suffix one on or both jobs, the emulator names will differ for the two jobs, and | ||
Jenkins will consider them as two completely different emulators, allowing them to run in | ||
parallel. | ||
</p> | ||
Note that this will cause more disk space to be used, as a new emulator will be created | ||
on disk for each unique suffix used. |