From 9ee710e48e72e5ffc4e1d4b9b6cb623aca334771 Mon Sep 17 00:00:00 2001 From: stevo Date: Fri, 21 Sep 2018 07:02:06 +0000 Subject: [PATCH] =?UTF-8?q?'jenkinsfile-yocto=5Fpyro'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jenkinsfile-yocto_pyro | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/jenkinsfile-yocto_pyro b/jenkinsfile-yocto_pyro index 69d1774..f6c8203 100644 --- a/jenkinsfile-yocto_pyro +++ b/jenkinsfile-yocto_pyro @@ -1,12 +1,11 @@ pipeline { /* agent any */ - agent {label 'rock'} + agent {label 'master'} stages { stage('clone poky sumo') { steps { sh '''#!/bin/bash set -x - cd /media/data_ssh rm -fr * git clone git://git.yoctoproject.org/poky cd poky @@ -14,14 +13,23 @@ pipeline { ''' } } - stage('build poky') { + stage('fetch sources for build') { steps { sh '''#!/bin/bash set -x - cd /media/data_ssh cd poky source oe-init-build-env ln -s /media/data/.yoctoshare/downloads ./downloads + bitbake core-image-minimal --runall=fetch + ''' + } + } + stage('build poky image') { + steps { + sh '''#!/bin/bash + set -x + cd poky + source oe-init-build-env bitbake core-image-minimal ''' }