From 8a03ad0d2457f11aa40328c9e0e132bb7517155d Mon Sep 17 00:00:00 2001 From: "E. Scott Daniels" Date: Tue, 11 Jun 2019 15:57:02 -0400 Subject: [PATCH] enhance(build): Add deb refernce file for ci/cd The CMake configure process will create a file in /tmp which provides a fully qualified path to the deb file which is generated when 'make package' is executed. Signed-off-by: E. Scott Daniels Change-Id: I5b21230f13e63403493e3344cf1d56a847406122 --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 415d88d..dff07ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,3 @@ - # #================================================================================== # Copyright (c) 2019 Nokia @@ -23,7 +22,7 @@ cmake_minimum_required( VERSION 3.5 ) set( major_version "1" ) # should be automatically populated from git tag later, but until CI process sets a tag we use this set( minor_version "0" ) -set( patch_level "32" ) +set( patch_level "33" ) set( install_root "${CMAKE_INSTALL_PREFIX}" ) set( install_lib "lib" ) @@ -84,6 +83,11 @@ add_definitions( -DPATCH_VER=${patch_level}${spoiled_str} ) +# create a file with the deb name so that jenkins can extract it +execute_process( + COMMAND bash -c "echo ${CMAKE_CURRENT_BINARY_DIR}/rmr_${major_version}.${minor_version}.${patch_level}.deb >/tmp/rmr_deb_path" +) + # ---------------- setup nano/nng things --------------------------------------- if( NOT SKIP_EXTERNALS ) -- 2.16.6