You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/04/24 11:50:46 UTC

[incubator-streampipes] branch dev updated: Fix bug in prebuild script

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

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new dae5636  Fix bug in prebuild script
dae5636 is described below

commit dae5636b9aff7a3e55d319101acc13a4a6b07790
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Fri Apr 24 13:49:41 2020 +0200

    Fix bug in prebuild script
---
 ui/deployment/prebuild.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/deployment/prebuild.js b/ui/deployment/prebuild.js
index 7d392b7..f17ddb5 100644
--- a/ui/deployment/prebuild.js
+++ b/ui/deployment/prebuild.js
@@ -22,7 +22,7 @@ mustache = require('mustache');
 
 console.log('Pre-Build started.');
 
-let branchName = process.env.BUILD_CONFIG.trim();
+let branchName = process.env.BUILD_CONFIG;
 
 // If Branch Name is not valid, use "def"
 if (branchName === undefined) {
@@ -30,6 +30,7 @@ if (branchName === undefined) {
     branchName = 'dev';
 } else {
     console.log('Environment Variable valid. Using Config for ' + branchName + '-Branch.');
+    branchName = branchName.trim();
 }
 
 // Check if Confgit stig-File for current Branch exists, otherwise use "def"