|
@@ -1,12 +1,11 @@ |
|
|
pipeline { |
|
|
pipeline { |
|
|
/* agent any */ |
|
|
/* agent any */ |
|
|
agent {label 'rock'} |
|
|
|
|
|
|
|
|
agent {label 'master'} |
|
|
stages { |
|
|
stages { |
|
|
stage('clone poky sumo') { |
|
|
stage('clone poky sumo') { |
|
|
steps { |
|
|
steps { |
|
|
sh '''#!/bin/bash |
|
|
sh '''#!/bin/bash |
|
|
set -x |
|
|
set -x |
|
|
cd /media/data_ssh |
|
|
|
|
|
rm -fr * |
|
|
rm -fr * |
|
|
git clone git://git.yoctoproject.org/poky |
|
|
git clone git://git.yoctoproject.org/poky |
|
|
cd poky |
|
|
cd poky |
|
@@ -14,14 +13,23 @@ pipeline { |
|
|
''' |
|
|
''' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
stage('build poky') { |
|
|
|
|
|
|
|
|
stage('fetch sources for build') { |
|
|
steps { |
|
|
steps { |
|
|
sh '''#!/bin/bash |
|
|
sh '''#!/bin/bash |
|
|
set -x |
|
|
set -x |
|
|
cd /media/data_ssh |
|
|
|
|
|
cd poky |
|
|
cd poky |
|
|
source oe-init-build-env |
|
|
source oe-init-build-env |
|
|
ln -s /media/data/.yoctoshare/downloads ./downloads |
|
|
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 |
|
|
bitbake core-image-minimal |
|
|
''' |
|
|
''' |
|
|
} |
|
|
} |
|
|