forked from Archive/PX4-Autopilot
Jenskinsfile: use nuttx container as emscripten requires xz to be installed
Fixes the error: Error: tar (child): xz: Cannot exec: No such file or directory
This commit is contained in:
parent
740d2fccb1
commit
25fe13583e
|
@ -94,21 +94,22 @@ pipeline {
|
||||||
|
|
||||||
stage('failsafe docs') {
|
stage('failsafe docs') {
|
||||||
agent {
|
agent {
|
||||||
docker { image 'px4io/px4-dev-base-focal:2021-08-18' }
|
docker { image 'px4io/px4-dev-nuttx-focal:2021-08-18' }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''#!/bin/bash -l
|
sh '''#!/bin/bash -l
|
||||||
echo $0;
|
echo $0;
|
||||||
git clone https://github.com/emscripten-core/emsdk.git _emscripten_sdk;
|
git clone https://github.com/emscripten-core/emsdk.git _emscripten_sdk;
|
||||||
cd _emscripten_sdk;
|
cd _emscripten_sdk;
|
||||||
./emsdk install latest;
|
./emsdk install latest;
|
||||||
./emsdk activate latest;
|
./emsdk activate latest;
|
||||||
|
cd ..;
|
||||||
. ./_emscripten_sdk/emsdk_env.sh;
|
. ./_emscripten_sdk/emsdk_env.sh;
|
||||||
make failsafe_web;
|
make failsafe_web;
|
||||||
cd build/px4_sitl_default_failsafe_web;
|
cd build/px4_sitl_default_failsafe_web;
|
||||||
mkdir -p failsafe_sim;
|
mkdir -p failsafe_sim;
|
||||||
cp index.* parameters.json failsafe_sim;
|
cp index.* parameters.json failsafe_sim;
|
||||||
'''
|
'''
|
||||||
dir('build/px4_sitl_default_failsafe_web') {
|
dir('build/px4_sitl_default_failsafe_web') {
|
||||||
archiveArtifacts(artifacts: 'failsafe_sim/*')
|
archiveArtifacts(artifacts: 'failsafe_sim/*')
|
||||||
stash includes: 'failsafe_sim/*', name: 'failsafe_sim'
|
stash includes: 'failsafe_sim/*', name: 'failsafe_sim'
|
||||||
|
|
Loading…
Reference in New Issue