Hi thanks for your reply. Thats exactly what i have but i managed to solve 
it by doing  sh ('zip -ur bin.zip README.md'). It successfully added the 
readme file in my bin.zip 

On Wednesday, 30 January 2019 08:27:24 UTC+1, Richard Bywater wrote:
>
> 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 <[email protected] 
> <javascript:>> 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.c 
>> <http://nexus.1worldsync.de/>om', 
>>          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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/9584f089-fe67-451b-912c-c39d9be8bdc8%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/9584f089-fe67-451b-912c-c39d9be8bdc8%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6c5b7051-ad15-4982-a3fb-2e2865204d25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to