Compare commits
1 Commits
54c0f22b1d
...
5e51a6b1f7
Author | SHA1 | Date | |
---|---|---|---|
|
5e51a6b1f7 |
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
@ -12,46 +12,22 @@ pipeline {
|
|||||||
repo sync
|
repo sync
|
||||||
"""
|
"""
|
||||||
stage('Fetch') {
|
stage('Fetch') {
|
||||||
steps {
|
sh """#!/bin/bash
|
||||||
script {
|
source bbb-init-build-env
|
||||||
if(params.MACHINE == 'beaglebone-yocto') {
|
bitbake console-image --runall=fetch
|
||||||
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') {
|
stage('Build') {
|
||||||
steps {
|
sh """#!/bin/bash
|
||||||
script {
|
source bbb-init-build-env
|
||||||
if(params.MACHINE == 'beaglebone-yocto') {
|
bitbake console-image
|
||||||
sh """#!/bin/bash
|
"""
|
||||||
source bbb-init-build-env
|
stash name: "download_bz2", includes: "**/build/downloads/*.tar.bz2", excludes: "**/build/downloads/*.tar.bz2.*"
|
||||||
bitbake console-image
|
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.*"
|
||||||
}
|
|
||||||
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.*"
|
|
||||||
|
|
||||||
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/**"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user