mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
jenkinsfile: use contrib cache
Change-Id: Ifc906e9c2d43cfa73d9cb0612bf67b406b85d508
This commit is contained in:
parent
8d35ad7356
commit
bb1919664f
1 changed files with 9 additions and 1 deletions
10
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
10
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
|
@ -94,13 +94,21 @@ pipeline {
|
|||
def jenkinsUser = jenkinsUID+':'+jenkinsGID
|
||||
def cpuCount = sh returnStdout: true, script: 'nproc || echo -n 4'
|
||||
|
||||
docker.image('client-validation').withRun('-t -u '+jenkinsUser+' -v '+pwd()+':/foo:rw -w /foo -e BATCH_MODE=1', '/bin/bash') {
|
||||
docker.image('client-validation').withRun('-t -u '+jenkinsUser+' -v '+pwd()+':/foo:rw -v /var/cache/jami:/var/cache/jami:rw -w /foo -e BATCH_MODE=1', '/bin/bash') {
|
||||
container -> code:{
|
||||
def base_cmd = 'docker exec -t '+container.id+" sh -c '"
|
||||
def exec_cmd = { cmd -> sh base_cmd+cmd+"'" }
|
||||
|
||||
def dockerTopDir = '/foo/'
|
||||
ansiColor('css') {
|
||||
exec_cmd("""
|
||||
cd ${dockerTopDir}/daemon/contrib
|
||||
mkdir native
|
||||
cd native
|
||||
../bootstrap --cache-dir=/var/cache/jami --cache-builds
|
||||
make list
|
||||
make fetch
|
||||
""")
|
||||
exec_cmd("""
|
||||
cd ${dockerTopDir}
|
||||
./build.py --install --qt /usr/lib/libqt-jami/
|
||||
|
|
Loading…
Add table
Reference in a new issue