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

Upload artifacts to more scp sites

    Details

    • Type: Improvement
    • Status: In Progress (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: scp-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      It would be nice to have possibility to upload artifacts with Hudson scp plugin
      to more scp sites.

      I have two submodules of my application – administration and web presentation –
      both of them run on different hosts.

      With scp plugin I can add more Source/Destination inputs but I would like to add
      another SCP site.

        Attachments

          Activity

          Hide
          oldelvet Richard Mortimer added a comment -

          This feature will be useful to me so I have taken a stab at implementing this feature.

          Briefly I have

          • split SCPRepositoryPublisher.java into two.
            • SitePublisher.java - holds configuration for uploading to one site (siteName and a list of entries)
            • SCPRepositoryPublisher.java - holds a list of SitePublisher entries.
          • SCPRepositoryPublisher has a readResolve() method to handle upgrading from existing configuration, It turns an existing siteName/entries combination into a single entry SitePublisher list. The existing siteName and entries instance variables need to remain in SCPRepositoryPublisher to allow xstream to unmarshall the configuration data
          • config.jelly now loops over SitePublisher entries and allows sites to be added/removed.
          • pom.xml has been updated with appropriate jenkins URLs.
            • It still depends on jenkins/hudson 1.389 so all existing users should just work.

          I am just cleaning up the code and will issue a pull request soon.

          Show
          oldelvet Richard Mortimer added a comment - This feature will be useful to me so I have taken a stab at implementing this feature. Briefly I have split SCPRepositoryPublisher.java into two. SitePublisher.java - holds configuration for uploading to one site (siteName and a list of entries) SCPRepositoryPublisher.java - holds a list of SitePublisher entries. SCPRepositoryPublisher has a readResolve() method to handle upgrading from existing configuration, It turns an existing siteName/entries combination into a single entry SitePublisher list. The existing siteName and entries instance variables need to remain in SCPRepositoryPublisher to allow xstream to unmarshall the configuration data config.jelly now loops over SitePublisher entries and allows sites to be added/removed. pom.xml has been updated with appropriate jenkins URLs. It still depends on jenkins/hudson 1.389 so all existing users should just work. I am just cleaning up the code and will issue a pull request soon.
          Hide
          oldelvet Richard Mortimer added a comment -

          Pull request submitted at
          https://github.com/jenkinsci/scp-plugin/pull/2

          I should also add that I have not updated the translations for the one or two words/phrases I added. All existing translations should be unaltered.

          Show
          oldelvet Richard Mortimer added a comment - Pull request submitted at https://github.com/jenkinsci/scp-plugin/pull/2 I should also add that I have not updated the translations for the one or two words/phrases I added. All existing translations should be unaltered.

            People

            • Assignee:
              oldelvet Richard Mortimer
              Reporter:
              jiri_pejchal jiri_pejchal
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: