diff --git a/Jenkinsfile b/Jenkinsfile index 8b1c5525e8..d8db30ba40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,8 +112,8 @@ pipeline { sh 'make distclean' sh 'make parameters_metadata' dir('build/px4_sitl_default/docs') { - archiveArtifacts(artifacts: 'parameters.md, parameters.xml') - stash includes: 'parameters.md, parameters.xml', name: 'metadata_parameters' + archiveArtifacts(artifacts: 'parameters.md, parameters.xml, params.json.gz') + stash includes: 'parameters.md, parameters.xml, params.json.gz', name: 'metadata_parameters' } } post { @@ -344,6 +344,7 @@ pipeline { withAWS(credentials: 'px4_aws_s3_key', region: 'us-east-1') { s3Upload(acl: 'PublicRead', bucket: 'px4-travis', file: 'airframes.xml', path: 'Firmware/master/') s3Upload(acl: 'PublicRead', bucket: 'px4-travis', file: 'parameters.xml', path: 'Firmware/master/') + s3Upload(acl: 'PublicRead', bucket: 'px4-travis', file: 'params.json.gz', path: 'Firmware/master/') } } when { diff --git a/src/modules/mavlink/streams/COMPONENT_INFORMATION.hpp b/src/modules/mavlink/streams/COMPONENT_INFORMATION.hpp index 27a5528381..770123397b 100644 --- a/src/modules/mavlink/streams/COMPONENT_INFORMATION.hpp +++ b/src/modules/mavlink/streams/COMPONENT_INFORMATION.hpp @@ -112,8 +112,15 @@ private: } } else { - // TODO: use server uri - return false; + // TODO: + // - check for tagged version, use per-version files + // - generate & use board-specific file + if (snprintf(component_info.metadata_uri, sizeof(component_info.metadata_uri), + "https://px4-travis.s3.amazonaws.com/Firmware/master/%s", file) + >= (int)sizeof(component_info.metadata_uri)) { + PX4_ERR("url too long (%s)", file); + return false; + } } return true;