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

bapSshPublisher closure requires sshCredentials in Jenkins DSL.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using the closure bapSshPublisher in Jenkins DSL, sshCredentials is required even though it appears to be optional when creating a job through the Jenkins UI:

       
      configName(String value)                   - required
      Select an SSH configuration from the list configured in the global configuration of this Jenkins.
       
      sshCredentials {}                                 - required
      Set the credentials to use with this connection.If you want to use different credentials from those configured for this server, or if the credentials have not been specified for this server, then enable this option and set them here.

      The resulting job allows de-selection of credentials, but DSL requires it.  

      sshCredentials should optional when using bapSshPublisher in the Jenkins DSL, especially when there's a global configuration that is referenced through configName.  

        Attachments

          Activity

          fzbassman Eric Wallengren created issue -
          slide_o_mix Alex Earl made changes -
          Field Original Value New Value
          Component/s job-dsl-plugin [ 16720 ]
          Component/s publish-over-ssh-plugin [ 15792 ]
          slide_o_mix Alex Earl made changes -
          Assignee bap [ bap ] Daniel Spilker [ daspilker ]
          daspilker Daniel Spilker made changes -
          Component/s publish-over-ssh-plugin [ 15792 ]
          daspilker Daniel Spilker made changes -
          Assignee Daniel Spilker [ daspilker ] Alex Earl [ slide_o_mix ]
          slide_o_mix Alex Earl made changes -
          Assignee Alex Earl [ slide_o_mix ] Daniel Spilker [ daspilker ]

            People

            Assignee:
            daspilker Daniel Spilker
            Reporter:
            fzbassman Eric Wallengren
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: