From a16bf7f6e3a7fd94afcc95348446658492572db1 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 5 Feb 2021 13:23:47 +0000 Subject: [PATCH] Added pipeline variable to keep FastNetMon version for CircleCI --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7c7b27b0..826e3826 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,8 @@ version: 2.1 +parameters: + fastnetmon_build_version: + type: string + default: "1.2.0" jobs: ubuntu2004: docker: @@ -44,10 +48,10 @@ jobs: path: /opt/fastnetmon_libraries_bundle.tar.gz - store_artifacts: path: /tmp/fastnetmon_install.log - - run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz 1.2.0 ubuntu 20.04 + - run: src/scripts/build_any_package.pl deb /opt/fastnetmon_libraries_bundle.tar.gz << pipeline.parameters.fastnetmon_build_version >> ubuntu 20.04 - store_artifacts: - path: /tmp/fastnetmon_1.2.0_amd64.deb - - run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_1.2.0_amd64.deb s3://fastnetmon_community_packages/ubuntu/20.04/fastnetmon_1.2.0_amd64.deb + path: /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb + - run: s3cmd --disable-multipart --host=storage.googleapis.com --host-bucket="%(bucket).storage.googleapis.com" put /tmp/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb s3://fastnetmon_community_packages/<< pipeline.parameters.fastnetmon_build_version >>/ubuntu/20.04/fastnetmon_<< pipeline.parameters.fastnetmon_build_version >>_amd64.deb - run: cp src/fastnetmon.conf /etc/fastnetmon.conf - run: ldd /opt/fastnetmon/fastnetmon - run: ldd /opt/fastnetmon/fastnetmon_client