update jenkins
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
FarmMaps/CarbonLib/pipeline/head This commit looks good

This commit is contained in:
2021-12-16 14:45:58 +01:00
parent b74c3f571f
commit 2cd2ee7967

2
Jenkinsfile vendored
View File

@@ -3,7 +3,7 @@ pipeline {
environment {
APP_VERSION_PREFIX=sh(script: ' cat *.csproj| xmlstarlet sel -t -m "/Project/PropertyGroup/Version" -v . -n|awk -v def="1.0.0" "{print} END { if(NR==0) {print def} }"', returnStdout: true).trim()
APP_NAME=sh(script: ' cat *.csproj| xmlstarlet sel -t -m "/Project/PropertyGroup/AssemblyName" -v . -n|awk -v def="App" "{print tolower(\\$0)} END { if(NR==0) {print def} }"', returnStdout: true).trim()
APP_VERSION="${APP_VERSION_PREFIX + '.' + env.BUILD_NUMBER}"
APP_VERSION="${APP_VERSION_PREFIX}"
}
stages {
stage('Dotnet Restore') {