diff --git a/extras/ci/client-qt-gnulinux/Jenkinsfile b/extras/ci/client-qt-gnulinux/Jenkinsfile index 53893bf2..46575abc 100644 --- a/extras/ci/client-qt-gnulinux/Jenkinsfile +++ b/extras/ci/client-qt-gnulinux/Jenkinsfile @@ -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