Commit bf2e175e by 据说甜蜜呢

添加环境变量

parent 02e969b6
Pipeline #4260 passed with stage
in 18 seconds
...@@ -24,11 +24,11 @@ do ...@@ -24,11 +24,11 @@ do
declare current=$(echo "${row}"|awk '{print $3}') declare current=$(echo "${row}"|awk '{print $3}')
declare uptodate=$(echo "${row}"|awk '{print $4}') declare uptodate=$(echo "${row}"|awk '{print $4}')
declare available=$(echo "${row}"|awk '{print $5}') declare available=$(echo "${row}"|awk '{print $5}')
echo "deployment: ${name}, desired: ${desired}, current: ${current}, uptodate: ${uptodate}, available: ${available}" echo "[${Environment}]deployment: ${name}, desired: ${desired}, current: ${current}, uptodate: ${uptodate}, available: ${available}"
if [ $((${desired})) == $((${current})) -a $((${current})) == $((${uptodate})) -a $((${uptodate})) == $((${available})) ]; then if [ $((${desired})) == $((${current})) -a $((${current})) == $((${uptodate})) -a $((${uptodate})) == $((${available})) ]; then
echo "${name} has been ready."; echo "[${Environment}]${name} has been ready.";
else else
echo "${name} has been not ready."; echo "[${Environment}]${name} has been not ready.";
allIsReady=0 allIsReady=0
fi fi
done done
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
set -e set -e
echo "Begin testing..." echo "[${Environment}]Begin testing..."
declare dir='./test/ServicesTests' declare dir='./test/ServicesTests'
for prefix in `ls ${dir}|xargs -d '/'` for prefix in `ls ${dir}|xargs -d '/'`
do do
dotnet test "${dir}/${prefix}/${prefix}.csproj" dotnet test "${dir}/${prefix}/${prefix}.csproj"
done done
echo "Test completed." echo "[${Environment}]Test completed."
\ No newline at end of file \ No newline at end of file
...@@ -8,6 +8,7 @@ sh ./devops/PipeLines/Functions.core.sh ...@@ -8,6 +8,7 @@ sh ./devops/PipeLines/Functions.core.sh
GetNameSpace namespace GetNameSpace namespace
echo "[${Environment}]Begin cleaning..."
declare replicas=$(kubectl -n ${namespace} get rs) declare replicas=$(kubectl -n ${namespace} get rs)
for row in $replicas for row in $replicas
do do
...@@ -22,6 +23,4 @@ do ...@@ -22,6 +23,4 @@ do
fi fi
done done
echo 'clean successful...' echo '[${Environment}]Clean completed.'
\ No newline at end of file
exit 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment