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:
parent
d70a663914
commit
565c04e725
1 changed files with 14 additions and 1 deletions
15
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
15
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
|
@ -53,10 +53,22 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('SCM Checkout') {
|
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 {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh """
|
sh """
|
||||||
git fetch ssh://jenkins@review.jami.net:29420/jami-client-qt $GERRIT_REFSPEC && git checkout FETCH_HEAD
|
|
||||||
git rev-parse HEAD
|
git rev-parse HEAD
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
"""
|
"""
|
||||||
|
@ -94,6 +106,7 @@ pipeline {
|
||||||
cmake .. -DENABLE_TESTS=True
|
cmake .. -DENABLE_TESTS=True
|
||||||
make -j${cpuCount}
|
make -j${cpuCount}
|
||||||
""")
|
""")
|
||||||
|
// Run tests
|
||||||
exec_cmd("""
|
exec_cmd("""
|
||||||
cd ${dockerTopDir}
|
cd ${dockerTopDir}
|
||||||
cd tests/qml/src
|
cd tests/qml/src
|
||||||
|
|
Loading…
Add table
Reference in a new issue