jenkins: Use unified yocto model.
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
parent
ebf7a71e30
commit
73d4b5953e
34
Jenkinsfile
vendored
34
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') {
|
|
||||||
echo "Fetch for beaglebone-yocto"
|
|
||||||
sh """#!/bin/bash
|
sh """#!/bin/bash
|
||||||
source bbb-init-build-env
|
MACHINE=${params.MACHINE} source blackfinn-init-build-env
|
||||||
bitbake console-image --runall=fetch
|
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') {
|
|
||||||
echo "Build for beaglebone-yocto"
|
|
||||||
sh """#!/bin/bash
|
sh """#!/bin/bash
|
||||||
source bbb-init-build-env
|
MACHINE=${params.MACHINE} source blackfinn-init-build-env
|
||||||
bitbake console-image
|
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