Added pipeline variable to keep FastNetMon version for CircleCI

This commit is contained in:
Pavel Odintsov 2021-02-05 13:23:47 +00:00
parent 1efad5a28f
commit a16bf7f6e3

@ -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