continuous integration - Upload artifact to Jfrog Artifactory using Jfrog CLI -
i'm trying upload artifact bamboo ci using jfrog cli:
i need upload p2 plugins , have 2 options:
- upload .zip , deploy bundle artifact
- upload uncompressed folder subfolders , data.
i'm trying upload uncompressed folder subfolders , data using command:
jfrog rt upload --include-dirs=true ${bamboo.build.working.directory}/unzip/${bamboo.public.name-update-site}/* p2-release-local/${bamboo.public.name-update-site}/ but problem subfolders empty.
also try use command: --flat
jfrog rt upload --flat=false ${bamboo.build.working.directory}/unzip/${bamboo.public.name-update-site}/* p2-release-local/${bamboo.public.name-update-site}/ this command upload subfolders data path isn't correct because is:
/name-update-site/datos/agents-home/xml-data/build-dir/predel-relplu-job1/unzip/name-update-site the content of variable ${bamboo.build.working.directory}
/datos/agents-home/xml-data/build-dir/predel-relplu-job1/ edited: log info:
info: listing bamboo directory prueba-update-site.zip unzip info: listing files unzip folder prueba-update-site info: listing files custom folder artifacts.jar content.jar features plugins site.xml uninstall_fortify_plugins.cmd any help?
thanks.
solved!
the solution is:
- unzip artifact .zip archive
upload command:
jfrog rt upload --flat=false "${bamboo.public.name-update-site}/*" p2-release-local/
thanks.
Comments
Post a Comment