mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-05 23:35:50 +02:00
jenkinsfile: prepare steps
Change-Id: If54b46f1f1c7629a728a97d0803d986d3d5cecd9
This commit is contained in:
parent
31494c68da
commit
5083e2a75f
1 changed files with 79 additions and 57 deletions
26
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
26
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
|
@ -53,6 +53,8 @@ pipeline {
|
|||
|
||||
stages {
|
||||
stage('SCM Checkout') {
|
||||
steps {
|
||||
script {
|
||||
deleteDir()
|
||||
// Checkout jami-project to obtain daemon/LRC/client-qt repositories
|
||||
sh """
|
||||
|
@ -69,14 +71,23 @@ pipeline {
|
|||
git submodule update --init --recursive
|
||||
cd ..
|
||||
"""
|
||||
topDir = pwd() + '/jami-project'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dir (topDir) {
|
||||
stage('Building Docker Image') {
|
||||
steps {
|
||||
dir (pwd() + '/jami-project') {
|
||||
script {
|
||||
docker.build('client-validation', "-f client-qt/extras/build/docker/Dockerfile.client-qt-gnulinux --no-cache .")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build project') {
|
||||
steps {
|
||||
script {
|
||||
def jenkinsUID = sh(returnStdout: true, script: 'id -u jenkins').replaceAll("\n", '').trim()
|
||||
def jenkinsGID = sh(returnStdout: true, script: 'id -g jenkins').replaceAll("\n", '').trim()
|
||||
def jenkinsUser = jenkinsUID+':'+jenkinsGID
|
||||
|
@ -93,6 +104,8 @@ pipeline {
|
|||
def installDir = dockerTopDir + '/install'
|
||||
|
||||
stage('Build Client') {
|
||||
steps {
|
||||
script {
|
||||
ansiColor('css') {
|
||||
exec_cmd("""
|
||||
cd ${clientDir}
|
||||
|
@ -108,8 +121,12 @@ pipeline {
|
|||
""")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Run Tests') {
|
||||
steps {
|
||||
script {
|
||||
ansiColor('css') {
|
||||
exec_cmd("""
|
||||
cd ${clientDir}
|
||||
|
@ -122,4 +139,9 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue