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

Job-DSL stash notifier creates "Unreadable Data".

    XMLWordPrintable

Details

    Description

      When following the job dsl documentation for the Stash notifier plugin (https://jenkinsci.github.io/job-dsl-plugin/#path/job-publishers-stashNotifier) 

      code:

      job('blah') { publishers {  stashNotifier()  } } 

       

      It produces the following XML:
      <org.jenkinsci.plugins.stashNotifier.StashNotifier>
               <stashServerBaseUrl/>
               <stashUserName/>
               <stashUserPassword/>
               <ignoreUnverifiedSSLPeer>false</ignoreUnverifiedSSLPeer>
               <commitSha1/>
               <includeBuildNumberInKey>false</includeBuildNumberInKey>
      </org.jenkinsci.plugins.stashNotifier.StashNotifier>
       
      This triggers an "Unreadable Data" message:
            MissingFieldException: No field 'stashUserName' found in class 'org.jenkinsci.plugins.stashNotifier.StashNotifier', MissingFieldException: No field 'stashUserPassword' found in class 'org.jenkinsci.plugins.stashNotifier.StashNotifier'

      Attachments

        Activity

          cruhl Chaz Ruhl created issue -
          daspilker Daniel Spilker made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          daspilker Daniel Spilker made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            daspilker Daniel Spilker
            cruhl Chaz Ruhl
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: