mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-07 00:05:54 +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 {
|
steps {
|
||||||
script {
|
script {
|
||||||
def jenkinsUID = sh(returnStdout: true, script: 'id -u jenkins').replaceAll("\n", '').trim()
|
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') {
|
docker.image('client-validation').withRun('-t -u '+jenkinsUser+' -v '+pwd()+':/foo:rw -w /foo -e BATCH_MODE=1', '/bin/bash') {
|
||||||
container -> code:{
|
container -> code:{
|
||||||
|
stages {
|
||||||
|
stage('Build Client') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
def base_cmd = 'docker exec -t '+container.id+" sh -c '"
|
def base_cmd = 'docker exec -t '+container.id+" sh -c '"
|
||||||
def exec_cmd = { cmd -> sh base_cmd+cmd+"'" }
|
def exec_cmd = { cmd -> sh base_cmd+cmd+"'" }
|
||||||
|
|
||||||
|
@ -102,10 +106,6 @@ pipeline {
|
||||||
def daemonDir = dockerTopDir + '/daemon'
|
def daemonDir = dockerTopDir + '/daemon'
|
||||||
def clientDir = dockerTopDir + '/client-qt'
|
def clientDir = dockerTopDir + '/client-qt'
|
||||||
def installDir = dockerTopDir + '/install'
|
def installDir = dockerTopDir + '/install'
|
||||||
|
|
||||||
stage('Build Client') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
ansiColor('css') {
|
ansiColor('css') {
|
||||||
exec_cmd("""
|
exec_cmd("""
|
||||||
cd ${clientDir}
|
cd ${clientDir}
|
||||||
|
@ -127,6 +127,11 @@ pipeline {
|
||||||
stage('Run Tests') {
|
stage('Run Tests') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
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') {
|
ansiColor('css') {
|
||||||
exec_cmd("""
|
exec_cmd("""
|
||||||
cd ${clientDir}
|
cd ${clientDir}
|
||||||
|
@ -141,6 +146,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue