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

When using Jenkins DSL, global defaults don't work

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          twizzydizzy TwizzyDizzy TwizzyDizzy created issue -
          mreinhardt Martin Reinhardt made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          mreinhardt Martin Reinhardt made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: