Quantcast

[JIRA] (JENKINS-13841) "Base folder" for deploying the artifacty from source folder to remote directory

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

[JIRA] (JENKINS-13841) "Base folder" for deploying the artifacty from source folder to remote directory

JIRA noreply@jenkins-ci.org
Gerd Zanker created JENKINS-13841:
-------------------------------------

             Summary: "Base folder" for deploying the artifacty from source folder to remote directory
                 Key: JENKINS-13841
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13841
             Project: Jenkins
          Issue Type: Improvement
          Components: artifactdeployer
            Reporter: Gerd Zanker
            Assignee: Gregory Boissinot
            Priority: Critical


Issue created because of some comments (https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin?focusedCommentId=58003116#comment-58003116) and my own needs.

Example content inside this directory {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/**}}
 * {{testDir/testFile1.txt}}
 * {{testFile2.txt}}

*Files to deploy {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/**}}*
*Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}}*

The *expected result* in Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}} is
 * {{testDir/testFile1.txt}}
 * {{testFile2.txt}}


A deploy with release 0.16 results in this content of Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}} is
 * {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/testDir/testFile1.txt}}
 * {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/testFile2.txt}}

and if the flatten option is used I would get also not the expected content of Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}} because the {{testDir}} is gone.
 * {{testFile1.txt}}
 * {{testFile2.txt}}


--
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-13841) "Base folder" for deploying the artifacty from source folder to remote directory

JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-13841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162992#comment-162992 ]

Gerd Zanker commented on JENKINS-13841:
---------------------------------------

I suggest to add a new optional field where the base folder can be entered.
Bye, Bye
Gerd
               

> "Base folder" for deploying the artifacty from source folder to remote directory
> --------------------------------------------------------------------------------
>
>                 Key: JENKINS-13841
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13841
>             Project: Jenkins
>          Issue Type: Improvement
>          Components: artifactdeployer
>            Reporter: Gerd Zanker
>            Assignee: Gregory Boissinot
>            Priority: Critical
>
> Issue created because of some comments (https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin?focusedCommentId=58003116#comment-58003116) and my own needs.
> Example content inside this directory {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/**}}
>  * {{testDir/testFile1.txt}}
>  * {{testFile2.txt}}
> *Files to deploy {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/**}}*
> *Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}}*
> The *expected result* in Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}} is
>  * {{testDir/testFile1.txt}}
>  * {{testFile2.txt}}
> A deploy with release 0.16 results in this content of Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}} is
>  * {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/testDir/testFile1.txt}}
>  * {{distribution/target/distribution-0.0.1-SNAPSHOT-bin/cdInstallation/testFile2.txt}}
> and if the flatten option is used I would get also not the expected content of Remote directory {{\\some-server\Staging\some-directory\CD-Installation-$BUILD_ID}} because the {{testDir}} is gone.
>  * {{testFile1.txt}}
>  * {{testFile2.txt}}

--
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-13841) "Base folder" for deploying the artifacty from source folder to remote directory

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

Thanks for the suggestion.

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-13841) "Base folder" for deploying the artifacty from source folder to remote directory

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

Code changed in jenkins
User: Gregory Boissinot
Path:
src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerBuilder.java
src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerEntry.java
src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java
src/main/java/org/jenkinsci/plugins/artifactdeployer/DeployedArtifacts.java
src/main/java/org/jenkinsci/plugins/artifactdeployer/service/ArtifactDeployerCopy.java
src/main/java/org/jenkinsci/plugins/artifactdeployer/service/ArtifactDeployerManager.java
src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerBuilder/config.jelly
src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerBuilder/help-basedir.html
src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerBuilder/help-includes.html
src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher/config.jelly
src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher/help-basedir.html
src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher/help-includes.html
http://jenkins-ci.org/commit/artifactdeployer-plugin/ad3f87bf90647e84499629b13c3c055f2f3f0254
Log:
Fix JENKINS-13841

Compare: https://github.com/jenkinsci/artifactdeployer-plugin/compare/7cadf00e2ffd...ad3f87bf9064

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-13841) "Base folder" for deploying the artifacty from source folder to remote directory

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Gregory Boissinot resolved Improvement JENKINS-13841 as Fixed
Change By: Gregory Boissinot (11/Jul/12 5:16 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-13841) "Base folder" for deploying the artifacty from source folder to remote directory

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Gerd Zanker commented on Improvement JENKINS-13841

Works perfectly.
In the advanced basedir field I can enter a workspace relative path. The included artifacts are now specified basedir relative and the job produces the expected results inside the remote directory.
Thank you for implementation.

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...