Re: How to include other files using (pipeline utility plugin) in jenkins pipeline

16 views
Skip to first unread message
Message has been deleted

Richard Bywater

unread,
Jan 30, 2019, 2:27:24 AM1/30/19
to jenkins...@googlegroups.com
Based on my reading of what you have put, it looks like you'd end up with a zip file called "bin.zip**/some/other/path/bin.zipREADME.md" - is that definitely what you have in your pipeline?


Richard.

On Wed, Jan 30, 2019 at 7:59 PM Faad Sayaou <faa...@gmail.com> wrote:
Hello,
I am using the pipeline utility plugín for zipping build results in order to do a nexus upload in my pipeline script.
However, I have a readme.md file in my workspace which i will like to include when zipping my build artifacts. I tried the following stages

       stage ('zip stage') {

        zip dir: 'My/path/bin', glob: '', zipFile: 'bin.zip' + '**/some/other/path/bin.zip' + 'README.md'

}
     stage ('nexus') {
         nexusArtifactUploader artifacts: [[artifactId: 'myID', 
         classifier: '', file: 'bin.zip', 
         type: 'zip']], credentialsId: '*******************************', 
         groupId: 'myGroupID', nexusUrl: 'nexus.com', 
         nexusVersion: 'nexus3', protocol: 'https', repository: 'Test', 
         version: '1.0.${BUILD_NUMBER}',
}

the README.md is however not included after checking the uploaded artífacts.

Any idea of how to include this file?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9584f089-fe67-451b-912c-c39d9be8bdc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages