12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- set -e
- # cd github-bash; bash startup.bash;
- #---------------------------------------------------------------------
- # args
- args_="
- #export APPNAME=xxxxxx
- export DOCKER_USERNAME=serset
- export DOCKER_PASSWORD=xxxxxx
- export NUGET_SERVER=https://api.nuget.org/v3/index.json
- export NUGET_KEY=xxxxxx
- export WebDav_BaseUrl="https://nextcloud.xxx.com/remote.php/dav/files/release/releaseFiles/ki_jenkins"
- export WebDav_User="username:pwd"
- # "
- #----------------------------------------------
- # cur path
- curPath=$PWD
- cd $curPath/../../..
- export basePath="$PWD"
- cd $curPath
- export devOpsPath="$PWD/.."
- # export basePath=/root/temp/svn
- if [ ! $APPNAME ]; then
- export APPNAME=$(cat "$devOpsPath/environment/env.APPNAME.txt" | tr -d '\n')
- echo "APPNAME: [${APPNAME}]"
- fi
- #----------------------------------------------
- echo '#1 build'
- cd "$devOpsPath/build-bash"; bash startup.bash;
- #----------------------------------------------
- echo '#2 release-bash'
- cd "$devOpsPath/release-bash"; bash startup.bash;
-
- #----------------------------------------------
- echo "#3 get appVersion"
- cd "$devOpsPath/build-bash"; source 19.get-app-version.bash;
- #----------------------------------------------
- echo "#4 bash"
- cd $curPath
- for file in *.sh
- do
- echo "-----------------------------------------------------------------"
- echo "[$(date "+%H:%M:%S")]" sh $file
- sh $file
- done
|