[JIRA] [publish-over-ssh-plugin] (JENKINS-33056) Please add clean remote option

19 views
Skip to first unread message

goikhburg@gmail.com (JIRA)

unread,
Feb 20, 2016, 8:20:04 AM2/20/16
to jenkinsc...@googlegroups.com
Lior Goikhburg created an issue
 
Jenkins / Bug JENKINS-33056
Please add clean remote option
Issue Type: Bug Bug
Assignee: bap
Components: publish-over-ssh-plugin
Created: 20/Feb/16 1:19 PM
Priority: Major Major
Reporter: Lior Goikhburg

Like in the Publish over FTP plugin

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

gpt@gtirloni.com (JIRA)

unread,
Oct 27, 2016, 2:45:02 PM10/27/16
to jenkinsc...@googlegroups.com
Giovanni Tirloni commented on Bug JENKINS-33056
 
Re: Please add clean remote option

Even though JJB lists a 'clean-remote' option, enabling it causes a "null" error when publishing. Tested with Publish over SSH plugin version 1.14.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

slide.o.mix@gmail.com (JIRA)

unread,
Feb 26, 2018, 10:55:02 AM2/26/18
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Alex Earl
 
Change By: Alex Earl
Assignee: bap Alex Earl
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

slide.o.mix@gmail.com (JIRA)

unread,
Apr 11, 2018, 11:58:02 PM4/11/18
to jenkinsc...@googlegroups.com
Alex Earl started work on Bug JENKINS-33056
 
Change By: Alex Earl
Status: Open In Progress

slide.o.mix@gmail.com (JIRA)

unread,
Apr 11, 2018, 11:58:02 PM4/11/18
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-33056
 
Re: Please add clean remote option

Will add this soon, sorry for the long wait time!

scm_issue_link@java.net (JIRA)

unread,
Apr 12, 2018, 12:09:02 AM4/12/18
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Alex Earl
Path:
pom.xml
src/main/java/jenkins/plugins/publish_over_ssh/BapSshClient.java
src/main/resources/jenkins/plugins/publish_over_ssh/Messages.properties
src/main/resources/jenkins/plugins/publish_over_ssh/options/SshOverrideTransferDefaults/config.jelly
src/test/java/jenkins/plugins/publish_over_ssh/BapSshClientTest.java
http://jenkins-ci.org/commit/publish-over-ssh-plugin/5b80db4f084cae85be0b7c510dafe89b18123d7b
Log:
Fix JENKINS-33056

slide.o.mix@gmail.com (JIRA)

unread,
Apr 19, 2018, 11:46:02 AM4/19/18
to jenkinsc...@googlegroups.com
Alex Earl stopped work on Bug JENKINS-33056
 
Change By: Alex Earl
Status: In Progress Open

slide.o.mix@gmail.com (JIRA)

unread,
Apr 19, 2018, 11:47:02 AM4/19/18
to jenkinsc...@googlegroups.com
Alex Earl resolved as Fixed
 

Will be in next version (1.20)

Change By: Alex Earl
Status: Open Resolved
Resolution: Fixed

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 12:03:02 AM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray commented on Bug JENKINS-33056
 
Re: Please add clean remote option

Alex Earl Can this functionality please be published. It seems a long time since v1.19.1 was released.  Is this plugin still being maintained?

Thank you, Andrew

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 1:17:02 AM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
[~slide_o_mix] Can this functionality please be published. It seems a long time since v1.19.1 was released.   Is this plugin still being maintained?

Thank you,


Andrew

github.com/agray

slide.o.mix@gmail.com (JIRA)

unread,
Sep 19, 2018, 1:46:02 PM9/19/18
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Fixed
 

Released 1.20

Change By: Alex Earl
Status: Resolved Closed

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 7:30:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
 
Re: Please add clean remote option
Thanks for this release Alex [~slide_o_mix] .  Much appreciated.

Is this supported in Declarative Pipeline?

How do I use this?  Do I just add
{code:java}
cleanRemote: true{code}
as an attribute on the sshPublisher() command?

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 7:30:02 PM9/19/18
to jenkinsc...@googlegroups.com

Thanks for this release Alex.  Much appreciated.

Is this supported in Declarative Pipeline?

How do I use this?  Do I just add

cleanRemote: true

as an attribute on the sshPublisher() command?

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 7:42:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
Thanks for this release [~slide_o_mix].  Much appreciated.


Is this supported in Declarative Pipeline?

How do I use this is it used ?   Do I we just add

{code:java}
cleanRemote: true{code}
as an attribute on the sshPublisher() command?


Also I don't see a cleanRemote option in the Pipeline Syntax generator. Has that been implemented?

I tested cleanRemote: true and it runs but doesn't do anything.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 7:45:01 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray reopened an issue
 

Functionality doesn't appear to be implemented for Declarative Pipeline or shown in Pipeline Syntax Generator.

Expected to be able to add cleanRemote: true to an sshPublisher() call in declarative pipeline.

Change By: Andrew Gray
Resolution: Fixed
Status: Closed Reopened

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 7:51:01 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
Thanks for this release [~slide_o_mix].  Much appreciated.

Is this supported in Declarative Pipeline?

How is it used? Do we just add

{code:java}
cleanRemote: true{code}
as an attribute on the sshPublisher() command?

Also I don't see a cleanRemote option in the Pipeline Syntax generator. Has that been implemented?

I tested cleanRemote: true and in an sshPublisher() call. it passes validation and runs but doesn't do anything.   Nothing is deleted in the remoteDirectory.  I would expect it to delete the contents of the remoteDirectory recursively leaving it an empty directory so that the transfer then filled up the remoteDirectory again with fresh files from source.

slide.o.mix@gmail.com (JIRA)

unread,
Sep 19, 2018, 8:27:02 PM9/19/18
to jenkinsc...@googlegroups.com

I don't use declarative so I am not sure how to use it there. I will have to refresh my memory on how it's used in pipeline. Can you attach your Jenkinsfile?

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:22:03 PM9/19/18
to jenkinsc...@googlegroups.com

 

pipeline {
    stages {
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}

The first sshPublisher line is the nasty workaround at the moment to remove the remote directory but it has to be an absolute path with is not going to be work as the drive letter is different across test environments.  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.

The second sshPublisher line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.

I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively.

 

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:23:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
 
{code:java}

pipeline {
    stages {
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}
{code}
The first sshPublisher
() line is the nasty workaround at the moment to remove the remote directory but it has to be an absolute path with is not going to be work as the drive letter is different across test environments.  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.

The second sshPublisher
() line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.


I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively.

 

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:27:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
{code:java}
pipeline {
    stages {
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}
{code}
The first sshPublisher() line is the nasty workaround at the moment to remove the remote directory but it has to be an absolute path with is not going to be work as the drive letter is different across test environments.  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.

The second sshPublisher() line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.


I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively.

 


Note: parameterisedpackage is a result directory that has had msdeploy run to apply a properties file for the target environment over the Web.config file.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:28:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
{code:java}
pipeline {
    stages {
        ...

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:32:03 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
{code:java}
pipeline {
    stages {
        ...
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}
{code}
The first sshPublisher() line is the nasty workaround at the moment to remove the remote directory but it has to be an absolute path with is not going to be work as the drive letter is different across test environments .  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.   Kind of gets the job BUT... it is not going to work well as the drive letter is different across test environments.  I would like to remove this line entirely.

The second sshPublisher() line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.

I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively.

 

Note: parameterisedpackage is a result directory that has had msdeploy run to apply a properties file for the target environment over the Web.config file.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:32:05 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
{code:java}
pipeline {
    stages {
        ...
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}
{code}
The first sshPublisher() line is the nasty workaround at the moment.  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.  Kind of gets the job done BUT... it is not going to work well as the drive letter is different across test environments.  I would like to remove this line entirely.


The second sshPublisher() line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.

I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively.

 

Note: parameterisedpackage is a result directory that has had msdeploy run to apply a properties file for the target environment over the Web.config file.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:34:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
{code:java}
pipeline {
    stages {
        ...
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}
{code}
The first sshPublisher() line is the nasty workaround at the moment.  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.  Kind of gets the job done BUT... it is not going to work well as the drive letter is different across test environments.  I would like to remove this line entirely.

The second sshPublisher() line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.

I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively and see it execute BEFORE the transfer of new files executes .


 

Note: parameterisedpackage is a result directory that has had msdeploy run to apply a properties file for the target environment over the Web.config file.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:43:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
{code:java}
pipeline {
    stages {
        ...
        stage("Deploy") {
            //Next line needs to be removed pending SSH Plugin fixes
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: "rd /s /q E:\\Absolute\\path\\to\\MyApplication", execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
            sshPublisher(publishers: [sshPublisherDesc(configName: "MyApplication_${env.ENVIRONMENT}", transfers: [sshTransfer(excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: true, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: "${env.RELATIVE_REMOTE_FOLDER}", remoteDirectorySDF: false, removePrefix: 'parameterisedpackage', sourceFiles: '/parameterisedpackage/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false, cleanRemote: true)])
        }
    }
}
{code}
The first sshPublisher() line is the nasty absolute path workaround at the moment.  This line has the effect of deleting the entire remote directory on the target machine and its contents recursively.  Kind of gets the job done BUT... it is not going to work well as the drive letter is different across test environments.  I would like to remove this line entirely.


The second sshPublisher() line copies the required files but the cleanRemote: true doesn't do anything in the remote directory on the target machine.

I would like cleanRemote to respect the RELATIVE_REMOTE_FOLDER in the remoteDirectory field (which the copying function part of the plugin is) and delete the entire remote directory on the target machine and its contents recursively and see it execute BEFORE the transfer of new files executes.

 

Note: parameterisedpackage is a result directory that has had msdeploy run to apply a properties file for the target environment over the Web.config file.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:45:02 PM9/19/18
to jenkinsc...@googlegroups.com


 

Let me know if you have any other questions.

slide.o.mix@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:52:01 PM9/19/18
to jenkinsc...@googlegroups.com

Can you check what version of the publish-over (NOT publish-over-ssh) plugin you have installed? If it is 0.21, can you try upgrading it to 0.22?

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 9:58:04 PM9/19/18
to jenkinsc...@googlegroups.com

Jenkins 2.138.1 (Latest LTS release)

 

I see that I already have 0.22 of the publish-over plugin installed in my Installed tab.

Infrastructure plugin for Publish Over X
Send build artifacts somewhere.
0.22

slide.o.mix@gmail.com (JIRA)

unread,
Sep 19, 2018, 10:02:01 PM9/19/18
to jenkinsc...@googlegroups.com

Ok, thanks. I'll keep looking on my end.

slide.o.mix@gmail.com (JIRA)

unread,
Sep 19, 2018, 10:28:04 PM9/19/18
to jenkinsc...@googlegroups.com

Ok, my bad, I didn't update one of the jelly files to allow this to work. I will add that and try and get an 1.20.1 out soon (I am getting on a plane in a few minutes so it may be tomorrow).

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 10:56:03 PM9/19/18
to jenkinsc...@googlegroups.com

Thanks Alex.  It is only the jelly (UI?) files?

Has this functionality been implemented for Declarative Pipeline to function as I am expecting?

If so, what should the attribute be if not "cleanRemote: true"

"clean-Remote: true"?

Many Thanks.

slide.o.mix@gmail.com (JIRA)

unread,
Sep 19, 2018, 11:10:02 PM9/19/18
to jenkinsc...@googlegroups.com

No, one other file got missed when I pushed. It would be cleanRemote: true. If it works for scripted, it should work for declarative. There is nothing special that needs to be done for declarative as far as I know.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 11:16:02 PM9/19/18
to jenkinsc...@googlegroups.com

As you can see from the above 2^nd^ sshPublisher() line above the cleanRemote: true appears to be totally ignored.

Monitoring the remote directory while the the job executes I see no deletion of anything in the remote directory.  Hence why I had to add the 1^st^ sshPublisher() line as a workaround.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 11:17:01 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
As you can see from the 2nd sshPublisher() line above the cleanRemote: true appears to be totally ignored.

Monitoring the remote directory while the
the job executes I see no deletion of anything in the remote directory.  Hence why I had to add the 1st sshPublisher() line as a workaround.

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 19, 2018, 11:17:02 PM9/19/18
to jenkinsc...@googlegroups.com
Andrew Gray edited a comment on Bug JENKINS-33056
As you can see from the above 2^nd^ 2nd sshPublisher() line above the cleanRemote: true appears to be totally ignored.

Monitoring the remote directory while the the job executes I see no deletion of anything in the remote directory.  Hence why I had to add the
1^st^ 1st sshPublisher() line as a workaround.

slide.o.mix@gmail.com (JIRA)

unread,
Sep 20, 2018, 12:53:03 AM9/20/18
to jenkinsc...@googlegroups.com

Yes, that would be because the other file that got missed

slide.o.mix@gmail.com (JIRA)

unread,
Sep 20, 2018, 11:16:03 PM9/20/18
to jenkinsc...@googlegroups.com

slide.o.mix@gmail.com (JIRA)

unread,
Sep 20, 2018, 11:17:02 PM9/20/18
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Fixed
 
Change By: Alex Earl
Status: Reopened Closed
Resolution: Fixed

andrew.paul.gray@gmail.com (JIRA)

unread,
Sep 21, 2018, 12:28:02 AM9/21/18
to jenkinsc...@googlegroups.com
Andrew Gray commented on Bug JENKINS-33056
 
Re: Please add clean remote option

Thank you Alex.  Tested and confirmed working as expected.

junk@jdark.com (JIRA)

unread,
Jul 2, 2019, 12:25:01 AM7/2/19
to jenkinsc...@googlegroups.com

Where is this released?  The latest release I see is 1.20.1.  Was this release pulled?

Reply all
Reply to author
Forward
0 new messages