Quantcast

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
Dev Zebra created JENKINS-13831:
-----------------------------------

             Summary: Need a way to copy empty directories with Publish Over SSH Plugin
                 Key: JENKINS-13831
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13831
             Project: Jenkins
          Issue Type: New Feature
          Components: publish-over-ssh
    Affects Versions: current
            Reporter: Dev Zebra
            Assignee: bap
            Priority: Blocker




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-13831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dev Zebra updated JENKINS-13831:
--------------------------------

    Priority: Minor  (was: Blocker)
   

> Need a way to copy empty directories with Publish Over SSH Plugin
> -----------------------------------------------------------------
>
>                 Key: JENKINS-13831
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13831
>             Project: Jenkins
>          Issue Type: New Feature
>          Components: publish-over-ssh
>    Affects Versions: current
>            Reporter: Dev Zebra
>            Assignee: bap
>            Priority: Minor
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Sorry for escalating this, but for our company this is urgently needed:

If you're using an application framework which relies on certain directories being there although they may be empty and try to deploy your application with this publisher you end up with a corrupt deployment. For this reason we need to zip all the contents before publishing and unzip afterwards.

Change By: Jörg Eichhorn (12/Sep/12 2:20 PM)
Priority: Minor Major
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ken Garland commented on New Feature JENKINS-13831

can you use rsync instead?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Yes, of course. We used to use rsync and it works fine. But we wanted to switch over to a more integrated configuration experience: Configure the target hosts in the jenkins configuration and refer to this configuration from a job., use include patterns as in every other place within the build jobs and so on. So this is not a real blocker, but would make life a lot easier. Not to mention that rsync is not available on Windows hosts, in contrast to jenkins and its plugins.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Ken Garland commented on New Feature JENKINS-13831

then it would be best for the author or someone who is willing to contribue to allow extra params to pass to scp. the -r switch should be sending empty directories. check the source of the plugin to see if this is part of the default parameters, in the worst case you can add it yourself.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Hi Ken, thanks for your helpful comments, I really appreciate your input!

I've already had a look at the source to find the exact source fragment involved in this, but I was not successful on the first run. Maybe I find more time later. In the meantime I would appreciate any hints on which source files to start for this feature.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
bap commented on New Feature JENKINS-13831

I have a solution for this - it will just take a week or two for me to fit it into my backlog.

In the mean time can you use the decades old trick of zero length hidden files? i.e. touch .keep in any leaf directory that yo want to be present on the target machine. (you can even use find in the Exec command to remove them afterwards if you need the dirs to be completely empty)
Alternatively keep zipping until a new version is released.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: bap2000
Path:
src/main/java/jenkins/plugins/publish_over/BPBuildInfo.java
src/main/java/jenkins/plugins/publish_over/BPTransfer.java
src/main/java/jenkins/plugins/publish_over/FileFinder.java
src/main/java/jenkins/plugins/publish_over/FileFinderResult.java
src/main/java/jenkins/plugins/publish_over/options/GlobalDefaults.java
src/main/java/jenkins/plugins/publish_over/options/TransferOptions.java
src/main/resources/jenkins/plugins/publish_over/view_defaults/BPTransfer/Messages.properties
src/main/resources/jenkins/plugins/publish_over/view_defaults/BPTransfer/Messages_no_BV.properties
src/test/java/jenkins/plugins/publish_over/BPBuildInfoTest.java
src/test/java/jenkins/plugins/publish_over/BPTransferTest.java
src/test/java/jenkins/plugins/publish_over/BapPublisherTest.java
src/test/java/jenkins/plugins/publish_over/FileFinderTest.java
http://jenkins-ci.org/commit/publish-over-plugin/d2b08c13cec1e6bb02d1df89344adfeaeb921500
Log:
[FIXED JENKINS-13126] [FIXED JENKINS-13831] Option to create empty directories

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: SCM/JIRA link daemon (28/Sep/12 11:26 PM)
Status: Open Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: bap2000
Path:
src/main/java/jenkins/plugins/publish_over_ssh/BapSshTransfer.java
src/main/java/jenkins/plugins/publish_over_ssh/descriptor/BapSshTransferDescriptor.java
src/main/java/jenkins/plugins/publish_over_ssh/options/SshOverrideTransferDefaults.java
src/main/resources/jenkins/plugins/publish_over_ssh/BapSshTransfer/config.jelly
src/main/resources/jenkins/plugins/publish_over_ssh/BapSshTransfer/help-makeEmptyDirs.html
src/main/resources/jenkins/plugins/publish_over_ssh/options/SshOverrideTransferDefaults/config.jelly
src/test/java/jenkins/plugins/publish_over_ssh/BapSshClientTest.java
src/test/java/jenkins/plugins/publish_over_ssh/BapSshHostConfigurationTest.java
src/test/java/jenkins/plugins/publish_over_ssh/jenkins/IntegrationTest.java
src/test/java/jenkins/plugins/publish_over_ssh/jenkins/LegacyConfigurationTest.java
http://jenkins-ci.org/commit/publish-over-ssh-plugin/02b6aa8c02abf62072f3ecdde9020932bd0f3a55
Log:
[FIXED JENKINS-13831] Option to create empty directories

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13831) Need a way to copy empty directories with Publish Over SSH Plugin

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
bap closed New Feature JENKINS-13831 as Fixed
Change By: bap (22/Oct/12 2:29 PM)
Status: Resolved Closed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...