Jak konwertować skrypt powłoki na plik YAML
echo ""
echo "Step1 - Verify Application"
tempfile=$(mktemp)
code1=`curl -u $1:$2 -s ""$3"/ReleaseManagement/Services/VerifyApplication?appName="$4"&appVersion="$5"" --write-out '%{http_code}' -o $tempfile`
if [[ $code1 == 200 ]] ; then
echo "Return code is $code1, Application status looks good"
elif [[ $code1 == 401 ]]; then
echo "Return code is $code1, Check the credentials"
exit 100;
else
echo "Return code is $code1, check the issue based on httpd return code"
errcode1=`curl -u $1:$2 -s ""$3"/ReleaseManagement/Services/VerifyApplication?appName="$4"&appVersion="$5""`
echo "$errcode1"
exit 100;
fi
rm -f $tempfile
sowjanya reddy