Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ pwd
/<yourHost>/WebApps/dev/ECOMPPORTAL/auto-builds
$ more build-auto.sh

Here is a listing of build-auto.sh:

Code Block
$ more build-auto.sh
#####
rundate=`date +%G%m%d%H%M%S`
cd /<yourHost>/WebApps/dev/ECOMPPORTAL/auto-builds/


rm -rf ecomp_portal_core
git clone https://<yourRepositoryHost>/scm/st_quantum/ecomp_portal_core.git -b 1607_Master


#git pull
cd ecomp_portal_core/ecomp-portal-FE/


export PATH=$PATH:/<yourHost>/WebApps/dev/ECOMPPORTAL/auto-builds/nodejs-installed/node-v5.10.1-linux-x64/bi
n:/<yourHost>/WebApps/dev/ECOMPPORTAL/au
to-builds/ecomp_portal_core/ecomp-portal-FE/node_modules/grunt-cli/bin:/<yourHost>/WebApps/dev/ECOMPPORTAL/
auto-builds/ecomp_portal_core/ecomp-po
rtal-FE/node_modules/bower/bin:/<yourHost>/WebApps/dev/ECOMPPORTAL/apache-maven-3.3.3/bin


npm install
npm install bower
bower install
npm install grunt-cli
/<yourHost>/WebApps/dev/ECOMPPORTAL/auto-builds/ecomp_portal_core/ecomp-portal-FE/node_modules/grunt-cli/bi
n/grunt build --env=integ


cp -R dist/public ../ecomp-portal-BE/war/
cd ../ecomp-portal-BE/


cp /<yourHost>/WebApps/dev/ECOMPPOies/system.properties war/WEB-INF/conf/
mvn clean package


#shutdown tomcat
mv /<yourHost>/WebApps/dev/ECOMPPORTAL/ecompportal /<yourHost>/WebApps/dev/ECOMPPORTAL/ecompportal_$rundate
cp -R target/ecompportal /<yourHost>/WebApps/dev/ECOMPPORTAL/