mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
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>
This commit is contained in:
parent
81b5375448
commit
876480f7ce
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user