diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2020-12-31 10:01:16 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-12-31 13:45:59 +0200 |
commit | 876480f7cea67a6aca156b31beefec0a5847c122 (patch) | |
tree | 867295ce41b3bb58c39739f4fe2b45966aab1ce7 /coin | |
parent | 81b537544885477a401e70a6ccce39ff9e67a3f9 (diff) |
coin: use unique hostname in CI machines
NFS uses hostname as the client id and doesn't work properly
if more than one VM is using the same hostname. Change to unique
hostname before mounting the cache.
Pick-to: 6.0
Change-Id: I58791d8eecc22589dc39a9e21a3b3a40afdfd905
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/module_config.yaml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 110cf50..35debe7 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -102,16 +102,16 @@ instructions: directory: "{{.BuildDir}}" - type: ChangeDirectory directory: "{{.BuildDir}}" - - type: ExecuteCommand - command: ["sudo", "mkdir", "-p", "/mnt/yocto-cache"] - userMessageOnFailure: "Could not create '/mnt/yocto-cache' directory" - - type: ExecuteCommand - command: ["sudo", "mount", "yocto-cache.intra.qt.io:/srv/yocto-cache", "/mnt/yocto-cache"] - userMessageOnFailure: "Could not mount yocto cache." - type: WriteFile fileContents: | #!/bin/bash -xe + # make hostname unique for NFS + sudo hostname $(hostname -s)-$(date +%s%N) + + sudo mkdir -p /mnt/yocto-cache + sudo mount yocto-cache.intra.qt.io:/srv/yocto-cache /mnt/yocto-cache + git clone git://git.yoctoproject.org/poky --reference /mnt/yocto-cache/mirror/poky.git (cd poky; git checkout ${YOCTO_BRANCH}) git clone git://github.com/openembedded/meta-openembedded --reference /mnt/yocto-cache/mirror/meta-openembedded.git @@ -142,7 +142,7 @@ instructions: filename: "{{.BuildDir}}/start-build" fileMode: 420 - type: ExecuteCommand - command: ["bash", "{{.BuildDir}}/start-build"] + command: ["bash", "-xe", "{{.BuildDir}}/start-build"] maxTimeInSeconds: 28800 maxTimeBetweenOutput: 28800 userMessageOnFailure: "Build failed." |