From 35525f5c6ff70b856e9bd3f7a85c15f5816c9dc6 Mon Sep 17 00:00:00 2001 From: AJ Date: Tue, 12 May 2020 10:46:08 -0400 Subject: [PATCH 1/2] config.yml if package cloud token is not set use hard coded value of 1 --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 074cf610f..dd88ea70b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -40,7 +40,11 @@ jobs: name: Export package version command: | PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);") - PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web) + if [ -n "$PACKAGECLOUD_TOKEN" ]; then + PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web) + else + PKG_RELEASE=1 + fi echo "export PKG_VERSION=${PKG_VERSION}" >> $BASH_ENV echo "export PKG_RELEASE=${PKG_RELEASE}" >> $BASH_ENV - run: From 8f6428ca34c26480c994a3cf6b874160507697b6 Mon Sep 17 00:00:00 2001 From: AJ Date: Tue, 12 May 2020 14:58:23 +0000 Subject: [PATCH 2/2] Update .circleci/config.yml add comment about fork that was useful in finding the bug. Co-authored-by: Eugen C. --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd88ea70b..2b22f8b50 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,6 +43,7 @@ jobs: if [ -n "$PACKAGECLOUD_TOKEN" ]; then PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web) else + # is fork PKG_RELEASE=1 fi echo "export PKG_VERSION=${PKG_VERSION}" >> $BASH_ENV