*Verification*
testconfig = {noformat} [base]\ntools\nplatform-tools\n\n[platforms]\nandroid-24\nandroid-25\n\n[build-tools]\n25.0.1\n25.0.3\n\n[extras:google]\ngoogle_play_services\nm2repository\n\n[extras:android]\nm2repository\n\n[keystore]\nalias=AndroidDebugKey\nname=AG\nunit=AeroGear\norg=RedHat\nloc=Waterford\nstate=WD\ncountry=IRL\nstorepass=android\nkeypass=android\n {noformat}
*Note: * The default edit view displays an input option rather than text area so the string has to be encoded in this way.
*Provisioned with default options (Auto Package install = true, package config = blank )*
Installed SDK components:
{noformat} sh-4.2$ ls -la /opt/android-sdk-linux/platforms/ total 28 drwxr-xr-x 7 1000150000 root 4096 May 9 10:00 . drwxrwx--- 10 root root 4096 May 9 09:56 .. drwxr-xr-x 5 1000150000 root 4096 May 9 09:53 android-22 drwxr-xr-x 6 1000150000 root 4096 May 9 09:53 android-23 drwxr-xr-x 6 1000150000 root 4096 May 9 10:00 android-24 drwxr-xr-x 6 1000150000 root 4096 May 9 09:53 android-25 drwxr-xr-x 6 1000150000 root 4096 May 9 10:00 android-26 sh-4.2$ ls -la /opt/android-sdk-linux/build-tools/ total 64 drwxr-xr-x 16 1000150000 root 4096 May 9 10:03 . drwxrwx--- 10 root root 4096 May 9 09:56 .. drwxr-xr-x 4 1000150000 root 4096 May 9 09:56 22.0.0 drwxr-xr-x 4 1000150000 root 4096 May 9 10:00 22.0.1 drwxr-xr-x 4 1000150000 root 4096 May 9 09:59 23.0.0 drwxr-xr-x 4 1000150000 root 4096 May 9 09:54 23.0.1 drwxr-xr-x 4 1000150000 root 4096 May 9 10:02 23.0.2 drwxr-xr-x 4 1000150000 root 4096 May 9 09:56 23.0.3 drwxr-xr-x 5 1000150000 root 4096 May 9 10:00 24.0.3 drwxr-xr-x 5 1000150000 root 4096 May 9 09:59 25.0.0 drwxr-xr-x 5 1000150000 root 4096 May 9 09:54 25.0.1 drwxr-xr-x 5 1000150000 root 4096 May 9 09:56 25.0.2 drwxr-xr-x 5 1000150000 root 4096 May 9 10:02 25.0.3 drwxr-xr-x 5 1000150000 root 4096 May 9 09:59 26.0.0 drwxr-xr-x 5 1000150000 root 4096 May 9 10:03 26.0.1 drwxr-xr-x 5 1000150000 root 4096 May 9 09:54 26.0.2 {noformat}
*Applied an edited config with testconfig.*
Installed SDK components after update:
{noformat} sh-4.2$ ls -la /opt/android-sdk-linux/build-tools/ total 16 drwxr-xr-x 4 1000150000 root 4096 May 9 11:52 . drwxrwx--- 10 root root 4096 May 9 11:52 .. drwxr-xr-x 5 1000150000 root 4096 May 9 09:54 25.0.1 drwxr-xr-x 5 1000150000 root 4096 May 9 10:02 25.0.3 sh-4.2$ ls -la /opt/android-sdk-linux/platforms/ total 16 drwxr-xr-x 4 1000150000 root 4096 May 9 11:52 . drwxrwx--- 10 root root 4096 May 9 11:52 .. drwxr-xr-x 6 1000150000 root 4096 May 9 10:00 android-24 drwxr-xr-x 6 1000150000 root 4096 May 9 09:53 android-25 {noformat}
*Provisioned with (Auto Package install = false, package config = blank )*
Installed SDK components:
None
*Provisioned with (Auto Package install = false, package config = testconfig )*
Android SDK failed to install, pod log shows:
{noformat} TASK [provision-buildfarm-apb : Send config file to android sdk container] ***** fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["oc", "cp", "/tmp/sdk.cfg", "testpr8/android-sdk-1-nlr2b:/opt/tools/sdk.cfg"], "delta": "0:00:00.542876", "end": "2018-05-09 12:52:31.739159", "msg": "non-zero return code", "rc": 1, "start": "2018-05-09 12:52:31.196283", "stderr": "error: lstat /tmp/sdk.cfg: no such file or directory", "stderr_lines": ["error: lstat /tmp/sdk.cfg: no such file or directory"], "stdout": "", "stdout_lines": []} {noformat}
After applying this update https://github.com/aerogearcatalog/aerogear-digger-apb/pull/8/commits/f52755bb71c13d4a4fcc83daf46810c409016314, the provision worked as expected and the installed SDK components were correct: {noformat} sh-4.2$ ls -la /opt/android-sdk-linux/platforms/ total 16 drwxr-xr-x 4 1000290000 root 4096 May 9 13:53 . drwxrwx--- 10 root root 4096 May 9 13:53 .. drwxr-xr-x 6 1000290000 root 4096 May 9 13:53 android-24 drwxr-xr-x 6 1000290000 root 4096 May 9 13:51 android-25 sh-4.2$ ls -la /opt/android-sdk-linux/build-tools/ total 16 drwxr-xr-x 4 1000290000 root 4096 May 9 13:54 . drwxrwx--- 10 root root 4096 May 9 13:53 .. drwxr-xr-x 5 1000290000 root 4096 May 9 13:54 25.0.1 drwxr-xr-x 5 1000290000 root 4096 May 9 13:54 25.0.3 {noformat}
|
|