I have a Jenkinsfile in which I need a property from my .csproj file (dotnet core project)
I have tried this:
def versionPrefix = sh(script: 'cat ./src/project.csproj | grep (?<=<VersionPrefix>).*(?=</VersionPrefix>)')
I know I'm probably far off, so I'm not necessarily looking for something close to this, but I am looking for a solution not requiring plugins (preferably).