mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-06 07:45:51 +02:00
jenkinsfile: add minimum build
Change-Id: I2dfc7669e7587ed71410b48ac2d12ee4638638a1
This commit is contained in:
parent
dc77833c7e
commit
63f7fca2df
1 changed files with 41 additions and 35 deletions
18
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
18
extras/ci/client-qt-gnulinux/Jenkinsfile
vendored
|
@ -85,7 +85,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
/*stage('Build project') {
|
||||
stage('Build project') {
|
||||
steps {
|
||||
script {
|
||||
def jenkinsUID = sh(returnStdout: true, script: 'id -u jenkins').replaceAll("\n", '').trim()
|
||||
|
@ -95,6 +95,10 @@ pipeline {
|
|||
|
||||
docker.image('client-validation').withRun('-t -u '+jenkinsUser+' -v '+pwd()+':/foo:rw -w /foo -e BATCH_MODE=1', '/bin/bash') {
|
||||
container -> code:{
|
||||
stages {
|
||||
stage('Build Client') {
|
||||
steps {
|
||||
script {
|
||||
def base_cmd = 'docker exec -t '+container.id+" sh -c '"
|
||||
def exec_cmd = { cmd -> sh base_cmd+cmd+"'" }
|
||||
|
||||
|
@ -102,10 +106,6 @@ pipeline {
|
|||
def daemonDir = dockerTopDir + '/daemon'
|
||||
def clientDir = dockerTopDir + '/client-qt'
|
||||
def installDir = dockerTopDir + '/install'
|
||||
|
||||
stage('Build Client') {
|
||||
steps {
|
||||
script {
|
||||
ansiColor('css') {
|
||||
exec_cmd("""
|
||||
cd ${clientDir}
|
||||
|
@ -127,6 +127,11 @@ pipeline {
|
|||
stage('Run Tests') {
|
||||
steps {
|
||||
script {
|
||||
def base_cmd = 'docker exec -t '+container.id+" sh -c '"
|
||||
def exec_cmd = { cmd -> sh base_cmd+cmd+"'" }
|
||||
|
||||
def dockerTopDir = '/foo'
|
||||
def clientDir = dockerTopDir + '/client-qt'
|
||||
ansiColor('css') {
|
||||
exec_cmd("""
|
||||
cd ${clientDir}
|
||||
|
@ -141,6 +146,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue