Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67450

dotnet sdk params

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • dotnet-sdk-plugin

      Hi.
      Thanks for this plugin, I find it very usefull. I use it on windows2019 core for legacy code compatability

      I have some suggestions for better expirience in declarative piplines:

      • Return exit code to pipline or variable: 
        Build error:

        Not failed pipline step(build failed by 'not found outputDir'):

        unstableIfWarnings  has pritty simmilar effect but not fails build
      • Set default encoding to UTF8 or make additional param for it:

      My current workaround use external library with powerhell with dotNet plugin kwargs in withDotnet block:

      //dotnetPublishPS.groovy
      def call(Map config = [:]){
         def properties = ""
         config.properties.each{ k,v -> 
      	properties += " -p:$k=$v"	
         } 
         return powershell(
           script: "dotnet publish -c:${config.configuration} ${properties}...etc...",
           encoding: 'UTF8',
           returnStatus: true
         )
      }
      

       

            zastai Tim Van Holder
            sam117 Viktor Sam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: