startup.bash 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. set -e
  2. # cd github-bash; bash startup.bash;
  3. #---------------------------------------------------------------------
  4. # args
  5. args_="
  6. #export APPNAME=xxxxxx
  7. export DOCKER_USERNAME=serset
  8. export DOCKER_PASSWORD=xxxxxx
  9. export NUGET_SERVER=https://api.nuget.org/v3/index.json
  10. export NUGET_KEY=xxxxxx
  11. export WebDav_BaseUrl="https://nextcloud.xxx.com/remote.php/dav/files/release/releaseFiles/ki_jenkins"
  12. export WebDav_User="username:pwd"
  13. # "
  14. #----------------------------------------------
  15. # cur path
  16. curPath=$PWD
  17. cd $curPath/../../..
  18. export basePath="$PWD"
  19. cd $curPath
  20. export devOpsPath="$PWD/.."
  21. # export basePath=/root/temp/svn
  22. if [ ! $APPNAME ]; then
  23. export APPNAME=$(cat "$devOpsPath/../environment/env.APPNAME.txt" | tr -d '\n')
  24. echo "APPNAME: [${APPNAME}]"
  25. fi
  26. #----------------------------------------------
  27. echo '#1 build'
  28. cd "$devOpsPath/build-bash"; bash startup.bash;
  29. #----------------------------------------------
  30. echo '#2 release-bash'
  31. cd "$devOpsPath/release-bash"; bash startup.bash;
  32. #----------------------------------------------
  33. echo "#3 get appVersion"
  34. cd "$devOpsPath/build-bash"; source 19.get-app-version.bash;
  35. #----------------------------------------------
  36. echo "#4 bash"
  37. cd $curPath
  38. for file in *.sh
  39. do
  40. echo "-----------------------------------------------------------------"
  41. echo "[$(date "+%H:%M:%S")]" sh $file
  42. sh $file
  43. done