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:
This greatly simplifies Jenkins CI solution with Azure DevOps, because now you have to monitor much less possible expirations.