Commit bf2e175e by 据说甜蜜呢

添加环境变量

parent 02e969b6
Pipeline #4260 passed with stage
in 18 seconds
......@@ -24,11 +24,11 @@ do
declare current=$(echo "${row}"|awk '{print $3}')
declare uptodate=$(echo "${row}"|awk '{print $4}')
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
echo "${name} has been ready.";
echo "[${Environment}]${name} has been ready.";
else
echo "${name} has been not ready.";
echo "[${Environment}]${name} has been not ready.";
allIsReady=0
fi
done
......
......@@ -2,10 +2,10 @@
set -e
echo "Begin testing..."
echo "[${Environment}]Begin testing..."
declare dir='./test/ServicesTests'
for prefix in `ls ${dir}|xargs -d '/'`
do
dotnet test "${dir}/${prefix}/${prefix}.csproj"
done
echo "Test completed."
\ No newline at end of file
echo "[${Environment}]Test completed."
\ No newline at end of file
......@@ -8,6 +8,7 @@ sh ./devops/PipeLines/Functions.core.sh
GetNameSpace namespace
echo "[${Environment}]Begin cleaning..."
declare replicas=$(kubectl -n ${namespace} get rs)
for row in $replicas
do
......@@ -22,6 +23,4 @@ do
fi
done
echo 'clean successful...'
exit 0
\ No newline at end of file
echo '[${Environment}]Clean completed.'
\ 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