How to use Azure Artifacts with dotnet in Jenkins pipeline?

You probably want to have one PAT (Personal Access Token) for Azure DevOps in Jenkins Credentials and use it not only for getting source code from GIT, but also for getting NuGet packages for build, right?

So, you need withCredentials with the environment variable VSS_NUGET_EXTERNAL_FEED_ENDPOINTS to be used like: