summaryrefslogtreecommitdiffstats
path: root/dgbuilder/createReleaseDir.sh
diff options
context:
space:
mode:
authorChinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>2018-06-27 16:11:44 +0000
committerChinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>2018-06-27 16:25:31 +0000
commit8f6a6c445eaeb7356e1db9d10d10b7d3fa42f27e (patch)
treebf1e5c83c357fbd4a0158cac6d41bd936e949a80 /dgbuilder/createReleaseDir.sh
parente14a02086c9119532f9153c78346d5c1d6789ca9 (diff)
removed dependency on built-editor.min.js
and added ability to test DG from dgbuilder and fixed the break node on XML generation and added ability to download formatted DG XML and DG JSON Issue-ID: SDNC-353 Change-Id: I799de5de2c4f61e9b56dbe996d8ac3e3b28061f7 Signed-off-by: Chinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>
Diffstat (limited to 'dgbuilder/createReleaseDir.sh')
-rwxr-xr-xdgbuilder/createReleaseDir.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/dgbuilder/createReleaseDir.sh b/dgbuilder/createReleaseDir.sh
index 00d185f7..eff8485a 100755
--- a/dgbuilder/createReleaseDir.sh
+++ b/dgbuilder/createReleaseDir.sh
@@ -21,6 +21,11 @@ dbName="sdnctl"
dbUser="sdnctl"
dbPassword="gamma"
gitLocalRepository="$4"
+restConfUrl="http://localhost:8181/restconf/operations/SLI-API:execute-graph"
+restConfUser="admin"
+restConfPassword="admin"
+formatXML="Y"
+formatJSON="Y"
lastPort=$(find "releases/" -name "customSettings.js" |xargs grep uiPort|cut -d: -f2|sed -e s/,//|sort|tail -1)
echo $lastPort|grep uiPort >/dev/null 2>&1
@@ -54,6 +59,7 @@ if [ ! -e "./$customSettingsFile" ]
then
echo "module.exports = {" >$customSettingsFile
echo " 'name' : '$name'," >>$customSettingsFile
+ echo " 'loginId' :'$loginId'," >>$customSettingsFile
echo " 'emailAddress' :'$emailid'," >>$customSettingsFile
echo " 'uiPort' :$nextPort," >>$customSettingsFile
echo " 'mqttReconnectTime': 15000," >>$customSettingsFile
@@ -70,7 +76,12 @@ then
echo " 'dbName': '$dbName'," >>$customSettingsFile
echo " 'dbUser': '$dbUser'," >>$customSettingsFile
echo " 'dbPassword': '$dbPassword'," >>$customSettingsFile
- echo " 'gitLocalRepository': '$gitLocalRepository'" >>$customSettingsFile
+ echo " 'gitLocalRepository': '$gitLocalRepository'," >>$customSettingsFile
+ echo " 'restConfUrl': '$restConfUrl'," >>$customSettingsFile
+ echo " 'restConfUser': '$restConfUser'," >>$customSettingsFile
+ echo " 'restConfPassword': '$restConfPassword'," >>$customSettingsFile
+ echo " 'formatXML': '$formatXML'," >>$customSettingsFile
+ echo " 'formatJSON': '$formatJSON'" >>$customSettingsFile
echo " }" >>$customSettingsFile
fi
#echo "Created custom settings file $customSettingsFile"