Commit 91397362 by 据说甜蜜呢

添加方法GetSolutionName

parent 2981db1d
Pipeline #4082 passed with stage
in 16 seconds
...@@ -10,7 +10,7 @@ declare appName ...@@ -10,7 +10,7 @@ declare appName
GetAppName appName GetAppName appName
echo "Continuous integration for ${appName} starting..." echo "Continuous integration for ${appName} starting..."
declare solutionName=($(grep -oP '(?<=SolutionName>)[^<]+' "devops/app.props")) GetSolutionName solutionName
dotnet build ${solutionName} dotnet build ${solutionName}
echo "Please check the version of each microservice carefully !!!" echo "Please check the version of each microservice carefully !!!"
......
...@@ -21,6 +21,12 @@ function GetAppName() ...@@ -21,6 +21,12 @@ function GetAppName()
eval $1="${appName}" eval $1="${appName}"
} }
function GetSolutionName()
{
declare name=($(grep -oP '(?<=SolutionName>)[^<]+' "./devops/app.props"))
eval $1="${name}"
}
function GetImageUserName() function GetImageUserName()
{ {
declare name=($(grep -oP '(?<=ImageUserName>)[^<]+' "devops/deploy.props")) declare name=($(grep -oP '(?<=ImageUserName>)[^<]+' "devops/deploy.props"))
......
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