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

When using Jenkins DSL, global defaults don't work

XMLWordPrintable

      Hi folks,

      not sure, whether I'm at the right place to report this, but let's see.

      We're using the Jenkins DSL to create jobs via .groovy files. We have configured the RocketChat user/password/serverURL/and so on globally in Jenkins settings.

      Yet when I try to create just a test:

      [...]
               publishers {
                   rocketChatNotifier {
                      title('Moin, ich bin lpp-frontend-infrastructure')
                      text('huhu')
                      channel('#jenkins')
                      customMessage('Moin, ich bin lpp-frontend-infrastructure')
                   }
               }
      [...]
      

      I get the following error:

      Processing DSL script PROJECTNAME.groovy

      ERROR: (PROJECTNAME, line 199) the following options are required and must be specified: rocketServerUrl, trustSSL, username, password, buildServerUrl, startNotification, notifyAborted, notifyFailure, notifyNotBuilt, notifySuccess, notifyUnstable, notifyBackToNormal, notifyRepeatedFailure, includeTestSummary, commitInfoChoice, includeCustomMessage

      Finished: FAILURE

      Is this something the plugin is able to solve?

      Cheers
      Thomas

            mreinhardt Martin Reinhardt
            twizzydizzy TwizzyDizzy TwizzyDizzy
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: