jenkins: Use unified yocto model.
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
parent
ebf7a71e30
commit
73d4b5953e
46
Jenkinsfile
vendored
46
Jenkinsfile
vendored
@ -12,40 +12,19 @@ pipeline {
|
|||||||
repo sync
|
repo sync
|
||||||
"""
|
"""
|
||||||
stage('Fetch') {
|
stage('Fetch') {
|
||||||
script {
|
echo "Fetch ${params.MACHINE}"
|
||||||
if(params.MACHINE == 'beaglebone-yocto') {
|
sh """#!/bin/bash
|
||||||
echo "Fetch for beaglebone-yocto"
|
MACHINE=${params.MACHINE} source blackfinn-init-build-env
|
||||||
sh """#!/bin/bash
|
bitbake console-image --runall=fetch
|
||||||
source bbb-init-build-env
|
"""
|
||||||
bitbake console-image --runall=fetch
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
else if(params.MACHINE == 'raspberrypi3-64') {
|
|
||||||
echo "Fetch for raspberrypi3-64"
|
|
||||||
sh """#!/bin/bash
|
|
||||||
source rpi-init-build-env
|
|
||||||
bitbake console-image --runall=fetch
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
script {
|
echo "Build ${params.MACHINE}"
|
||||||
if(params.MACHINE == 'beaglebone-yocto') {
|
sh """#!/bin/bash
|
||||||
echo "Build for beaglebone-yocto"
|
MACHINE=${params.MACHINE} source blackfinn-init-build-env
|
||||||
sh """#!/bin/bash
|
bitbake console-image
|
||||||
source bbb-init-build-env
|
"""
|
||||||
bitbake console-image
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
else if(params.MACHINE == 'raspberrypi3-64') {
|
|
||||||
echo "Build for raspberrypi3-64"
|
|
||||||
sh """#!/bin/bash
|
|
||||||
source rpi-init-build-env
|
|
||||||
bitbake console-image
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stash name: "download_bz2", includes: "**/build/downloads/*.tar.bz2", excludes: "**/build/downloads/*.tar.bz2.*"
|
stash name: "download_bz2", includes: "**/build/downloads/*.tar.bz2", excludes: "**/build/downloads/*.tar.bz2.*"
|
||||||
stash name: "download_gz", includes: "**/build/downloads/*.tar.gz", excludes: "**/build/downloads/*.tar.gz.*"
|
stash name: "download_gz", includes: "**/build/downloads/*.tar.gz", excludes: "**/build/downloads/*.tar.gz.*"
|
||||||
stash name: "download_xz", includes: "**/build/downloads/*.tar.xz", excludes: "**/build/downloads/*.tar.xz.*"
|
stash name: "download_xz", includes: "**/build/downloads/*.tar.xz", excludes: "**/build/downloads/*.tar.xz.*"
|
||||||
@ -56,6 +35,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy downloads') {
|
stage('Deploy downloads') {
|
||||||
agent {
|
agent {
|
||||||
label 'deploy'
|
label 'deploy'
|
||||||
@ -70,6 +50,7 @@ pipeline {
|
|||||||
sh "rm -rf *"
|
sh "rm -rf *"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy packages') {
|
stage('Deploy packages') {
|
||||||
agent {
|
agent {
|
||||||
label 'deploy'
|
label 'deploy'
|
||||||
@ -83,6 +64,7 @@ pipeline {
|
|||||||
sh "rm -rf *"
|
sh "rm -rf *"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy images') {
|
stage('Deploy images') {
|
||||||
agent {
|
agent {
|
||||||
label 'deploy'
|
label 'deploy'
|
||||||
|
Loading…
Reference in New Issue
Block a user