You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/08/22 02:57:31 UTC

[pulsar-site] branch main updated: update build scripts BUILD_VERSIONS=2.10.x,2.9.x,2.8.x

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 9aca55a53be update build scripts BUILD_VERSIONS=2.10.x,2.9.x,2.8.x
9aca55a53be is described below

commit 9aca55a53be0fff1488f59b29c093f680f137f2a
Author: Li Li <ur...@apache.org>
AuthorDate: Mon Aug 22 10:57:21 2022 +0800

    update build scripts BUILD_VERSIONS=2.10.x,2.9.x,2.8.x
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/website-next/scripts/replace.js             | 7 ++-----
 site2/website-next/scripts/split-version-build.sh | 2 +-
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/site2/website-next/scripts/replace.js b/site2/website-next/scripts/replace.js
index 53d630c3c91..16fa6a6a1bf 100644
--- a/site2/website-next/scripts/replace.js
+++ b/site2/website-next/scripts/replace.js
@@ -143,7 +143,7 @@ function doReplace(options) {
 
 const versions = getVersions();
 
-const latestVersion = versions[0];
+const latestVersion = getRealVersion(versions[0]);
 const latestVersionWithoutIncubating = latestVersion.replace("-incubating", "");
 
 const from = [
@@ -217,10 +217,7 @@ doReplace(options);
 
 // TODO activate and test when first version of docs are cut
 // replaces versions
-for (_v of versions) {
-  // if (v === latestVersion) {
-  //   continue;
-  // }
+for (let _v of versions) {
   const v = getRealVersion(_v)
   const vWithoutIncubating = v.replace("-incubating", "");
   const opts = {
diff --git a/site2/website-next/scripts/split-version-build.sh b/site2/website-next/scripts/split-version-build.sh
index a5255dc4dba..061680b607e 100755
--- a/site2/website-next/scripts/split-version-build.sh
+++ b/site2/website-next/scripts/split-version-build.sh
@@ -52,7 +52,7 @@ function _buildVersion() {
 COMMIT_MSG=$(git show -s --format=%s)
 FORCE_BUILD_ALL_LANGUAGE=$(echo $COMMIT_MSG | sed 's/.*BUILD_ALL_LANGUAGE=\([0-1]*\).*/\1/g')
 FORCE_BUILD_ALL_VERSION=$(echo $COMMIT_MSG | sed 's/.*BUILD_ALL_VERSION=\([0-1]*\).*/\1/g')
-FORCE_BUILD_VERSIONS=$(echo $COMMIT_MSG | sed 's/.*BUILD_VERSIONS=\([0-9\.]*\).*/\1/g')
+FORCE_BUILD_VERSIONS=$(echo $COMMIT_MSG | sed 's/.*BUILD_VERSIONS=\([0-9\.x,]*\).*/\1/g')
 FORCE_CROWDIN_ALL=$(echo $COMMIT_MSG | sed 's/.*CROWDIN_ALL=\([0-1]*\).*/\1/g')
 FORCE_CROWDIN_UP=$(echo $COMMIT_MSG | sed 's/.*CROWDIN_UP=\([0-1]*\).*/\1/g')
 FORCE_CROWDIN_DOWN=$(echo $COMMIT_MSG | sed 's/.*CROWDIN_DOWN=\([0-1]*\).*/\1/g')