Browse Source

Jenkins move bloaty to Analysis stage of main pipeline

sbg
Daniel Agar 7 years ago
parent
commit
4af7025996
  1. 52
      .ci/Jenkinsfile-compile
  2. 48
      Jenkinsfile

52
.ci/Jenkinsfile-compile

@ -19,51 +19,6 @@ pipeline { @@ -19,51 +19,6 @@ pipeline {
snapdragon: "lorenzmeier/px4-dev-snapdragon:2017-12-29"
]
// special builds:
// fmu-v2_{default, lpe} and fmu-v3_{default, rtps}
// bloaty compare to last successful master build
build_nodes["px4fmu-v2"] = {
node {
stage("Build Test px4fmu-v2") {
docker.image(docker_images.nuttx).inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
stage("px4fmu-v2") {
try {
checkout(scm)
sh('export')
sh('make distclean')
sh('ccache -z')
sh('git fetch --tags')
sh('make nuttx_px4io-v2_default')
sh('make nuttx_px4io-v2_default bloaty_symbols')
sh('make nuttx_px4io-v2_default bloaty_compileunits')
sh('make nuttx_px4io-v2_default bloaty_compare_master')
sh('make nuttx_px4fmu-v2_default')
sh('make nuttx_px4fmu-v2_default bloaty_symbols')
sh('make nuttx_px4fmu-v2_default bloaty_compileunits')
sh('make nuttx_px4fmu-v2_default bloaty_inlines')
sh('make nuttx_px4fmu-v2_default bloaty_templates')
sh('make nuttx_px4fmu-v2_default bloaty_compare_master')
sh('make nuttx_px4fmu-v2_lpe')
sh('make nuttx_px4fmu-v2_test')
sh('make nuttx_px4fmu-v3_default')
sh('make nuttx_px4fmu-v3_default bloaty_compare_master')
sh('make nuttx_px4fmu-v3_rtps')
sh('make sizes')
sh('ccache -s')
archiveArtifacts(allowEmptyArchive: false, artifacts: 'build/**/*.px4, build/**/*.elf', fingerprint: true, onlyIfSuccessful: true)
}
catch (exc) {
throw (exc)
}
finally {
sh('make distclean')
}
}
}
}
}
}
// MAC OSX posix_sitl_default
build_nodes["posix_sitl_default (OSX)"] = {
node("mac") {
@ -132,8 +87,8 @@ pipeline { @@ -132,8 +87,8 @@ pipeline {
]
def nuttx_builds_archive = [
target: ["px4fmu-v4_default", "px4fmu-v4pro_default", "px4fmu-v5_default", "aerofc-v1_default",
"aerocore2_default", "auav-x21_default", "crazyflie_default", "mindpx-v2_default",
target: ["px4fmu-v2_default", "px4fmu-v3_default", "px4fmu-v4_default", "px4fmu-v4pro_default", "px4fmu-v5_default", "px4fmu-v5_rtps",
"aerofc-v1_default", "aerocore2_default", "auav-x21_default", "crazyflie_default", "mindpx-v2_default",
"nxphlite-v3_default", "tap-v1_default", "omnibus-f4sd_default"],
image: docker_images.nuttx,
archive: true
@ -159,8 +114,7 @@ pipeline { @@ -159,8 +114,7 @@ pipeline {
]
def docker_builds = [
arch_builds, armhf_builds, base_builds, nuttx_builds_archive, nuttx_builds_other,
rpi_builds, snapdragon_builds
arch_builds, armhf_builds, base_builds, nuttx_builds_archive, nuttx_builds_other, rpi_builds, snapdragon_builds
]
for (def build_type = 0; build_type < docker_builds.size(); build_type++) {

48
Jenkinsfile vendored

@ -16,6 +16,54 @@ pipeline { @@ -16,6 +16,54 @@ pipeline {
}
}
stage('bloaty px4fmu-v2') {
agent {
docker {
image 'px4io/px4-dev-nuttx:2018-07-19'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
steps {
sh 'export'
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'make nuttx_px4fmu-v2_default'
sh 'make nuttx_px4fmu-v2_default bloaty_symbols'
sh 'make nuttx_px4fmu-v2_default bloaty_compileunits'
sh 'make nuttx_px4fmu-v2_default bloaty_inlines'
sh 'make nuttx_px4fmu-v2_default bloaty_templates'
sh 'make nuttx_px4fmu-v2_default bloaty_compare_master'
sh 'make sizes'
sh 'ccache -s'
sh 'make distclean'
}
}
stage('bloaty px4fmu-v5') {
agent {
docker {
image 'px4io/px4-dev-nuttx:2018-07-19'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
steps {
sh 'export'
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'make nuttx_px4fmu-v5_default'
sh 'make nuttx_px4fmu-v5_default bloaty_symbols'
sh 'make nuttx_px4fmu-v5_default bloaty_compileunits'
sh 'make nuttx_px4fmu-v5_default bloaty_inlines'
sh 'make nuttx_px4fmu-v5_default bloaty_templates'
sh 'make nuttx_px4fmu-v5_default bloaty_compare_master'
sh 'make sizes'
sh 'ccache -s'
sh 'make distclean'
}
}
stage('clang analyzer') {
agent {
docker {

Loading…
Cancel
Save