Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
5e51a6b1f7 linux-blackfinn: Add Jenkinsfile
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2019-03-06 11:40:49 +01:00

24
Jenkinsfile vendored
View File

@ -12,39 +12,16 @@ pipeline {
repo sync
"""
stage('Fetch') {
steps {
script {
if(params.MACHINE == 'beaglebone-yocto') {
sh """#!/bin/bash
source bbb-init-build-env
bitbake console-image --runall=fetch
"""
}
else if(params.MACHINE == 'raspberrypi3-64') {
sh """#!/bin/bash
source rpi-init-build-env
bitbake console-image --runall=fetch
"""
}
}
}
}
stage('Build') {
steps {
script {
if(params.MACHINE == 'beaglebone-yocto') {
sh """#!/bin/bash
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
"""
}
}
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.*"
@ -55,7 +32,6 @@ pipeline {
}
}
}
}
stage('Deploy downloads') {
agent {
label 'deploy'