1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-04 06:45:45 +02:00

jenkinsfile: get correct commit

Change-Id: I3166779843432a2a92781b35befc105c388374b4
This commit is contained in:
Sébastien Blin 2022-12-05 09:55:16 -05:00
parent d70a663914
commit 565c04e725
No known key found for this signature in database
GPG key ID: C894BB01EEB2A9A9

View file

@ -53,10 +53,22 @@ pipeline {
stages {
stage('SCM Checkout') {
// Wipe workspace and fetch jami-daemon
checkout changelog: true, poll: false,
scm: [$class: 'GitSCM',
branches: [[name: 'FETCH_HEAD']],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CloneOption', noTags: true, reference: '', shallow: true],
[$class: 'WipeWorkspace']],
submoduleCfg: [],
userRemoteConfigs: [[refspec: '${GERRIT_REFSPEC}', url: 'https://${JAMI_GERRIT_URL}/jami-client-qt']]]
}
stage('Init repository') {
steps {
script {
sh """
git fetch ssh://jenkins@review.jami.net:29420/jami-client-qt $GERRIT_REFSPEC && git checkout FETCH_HEAD
git rev-parse HEAD
git submodule update --init --recursive
"""
@ -94,6 +106,7 @@ pipeline {
cmake .. -DENABLE_TESTS=True
make -j${cpuCount}
""")
// Run tests
exec_cmd("""
cd ${dockerTopDir}
cd tests/qml/src