Skip to content

Jenkins plugin for using a .NET SDK (and its dotnet executable) as a global tool.

License

Notifications You must be signed in to change notification settings

jenkinsci/dotnet-sdk-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotnet-sdk-plugin

Jenkins Plugin GitHub Release Jenkins Plugin Installs Jenkins CI Status

This is a plugin for Jenkins, providing convenient use of .NET SDKs, specifically the SDKs for .NET Core and .NET 5.0.

This includes:

  • configuration of named SDKs as global tools, with automatic installation via download
    • dotnetsdk in the tools section of a declarative pipeline
  • a build wrapper, to set up the environment for a particular .NET SDK
    • a "With .NET" section in freestyle jobs
    • withDotNet in pipelines
  • several builders, for common dotnet commands:
    • dotnetBuild - runs "dotnet build"
    • dotnetClean - runs "dotnet clean"
    • dotnetListPackage - runs "dotnet list package"
    • dotnetNuGetDelete - runs "dotnet nuget delete"
    • dotnetNuGetPush - runs "dotnet nuget push"
    • dotnetPack - runs "dotnet pack"
    • dotnetPublish - runs "dotnet publish"
    • dotnetRestore - runs "dotnet restore"
    • dotnetTest - runs "dotnet test"
    • dotnetToolRestore - runs "dotnet tool restore"

The builders are just for convenience; when using the build wrapper, any dotnet command line can be executed using a shell step (bat, sh, powershell, pwsh, ...), as applicable.

Reporting Problems

Please report issues in the Jenkins Issue Tracker. File them under the JENKINS project, making sure to add the dotnet-sdk-plugin component.

Release Notes

Available as part of the GitHub Releases.