Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
54c0f22b1d linux-blackfinn: Add Jenkinsfile
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2019-03-08 10:29:58 +01:00

64
Jenkinsfile vendored
View File

@ -12,42 +12,46 @@ pipeline {
repo sync repo sync
""" """
stage('Fetch') { stage('Fetch') {
script { steps {
if(params.MACHINE == 'beaglebone-yocto') { script {
sh """#!/bin/bash if(params.MACHINE == 'beaglebone-yocto') {
source bbb-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') { }
sh """#!/bin/bash else if(params.MACHINE == 'raspberrypi3-64') {
source rpi-init-build-env sh """#!/bin/bash
bitbake console-image --runall=fetch source rpi-init-build-env
""" bitbake console-image --runall=fetch
"""
}
} }
} }
} }
stage('Build') { stage('Build') {
script { steps {
if(params.MACHINE == 'beaglebone-yocto') { script {
sh """#!/bin/bash if(params.MACHINE == 'beaglebone-yocto') {
source bbb-init-build-env sh """#!/bin/bash
bitbake console-image source bbb-init-build-env
""" bitbake console-image
"""
}
else if(params.MACHINE == 'raspberrypi3-64') {
sh """#!/bin/bash
source rpi-init-build-env
bitbake console-image
"""
}
} }
else if(params.MACHINE == 'raspberrypi3-64') { stash name: "download_bz2", includes: "**/build/downloads/*.tar.bz2", excludes: "**/build/downloads/*.tar.bz2.*"
sh """#!/bin/bash stash name: "download_gz", includes: "**/build/downloads/*.tar.gz", excludes: "**/build/downloads/*.tar.gz.*"
source rpi-init-build-env stash name: "download_xz", includes: "**/build/downloads/*.tar.xz", excludes: "**/build/downloads/*.tar.xz.*"
bitbake console-image
"""
}
}
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_xz", includes: "**/build/downloads/*.tar.xz", excludes: "**/build/downloads/*.tar.xz.*"
stash name: "deploy_ipk", includes: "**/build/tmp/deploy/ipk/**" stash name: "deploy_ipk", includes: "**/build/tmp/deploy/ipk/**"
stash name: "deploy_images", includes: "**/build/tmp/deploy/images/**" stash name: "deploy_images", includes: "**/build/tmp/deploy/images/**"
}
} }
} }
} }