Skip to content
Snippets Groups Projects
Commit 63f7fca2 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

jenkinsfile: add minimum build

Change-Id: I2dfc7669e7587ed71410b48ac2d12ee4638638a1
parent dc77833c
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ pipeline { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -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 { ...@@ -141,6 +146,7 @@ pipeline {
} }
} }
} }
}*/ }
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment