I have the following in my pipeline:
- apt-get update && apt-get install zip -y
- zip -r api.zip MyApp/**
- ls .
artifacts:
- api.zip
In the log files, I see the files being zipped and the `ls .` step does show an api.zip file. But it doesn't appear in the Artifacts tab nor is it available in subsequent steps. Any thoughts on why?
I figured it out. What I left out of my sample was a "cd myFolder". So I was changing directories in my script and the zip file was being created in it, as expected. But I forgot to include the full path to it in the artifacts so it should have been:
artifacts:
- myFolder/api.zip
Hi @kbaley I have same issue and even though adding full path during upload it shows path not exist.
Also can you help how to zip subfolders in the build folder...Because it is only zipping my files and not sub-folders.
link to pipeline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.