Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
534 views
in Technique[技术] by (71.8m points)

artifactory - gitlab: how can i programmatically upload the artifacts to gitlab registry

I have jfrog backup with the below format:

./repositories
./repositories/digital
./repositories/digital/admin
./repositories/digital/admin/revealjs-digital-signage
./repositories/digital/admin/revealjs-digital-signage/v1.artifactory-metadata
./repositories/digital/admin/revealjs-digital-signage/v1.artifactory-metadata/artifactory-folder.xml
./repositories/digital/admin/revealjs-digital-signage/_uploads
./repositories/digital/admin/revealjs-digital-signage/v1
./repositories/digital/admin/revealjs-digital-signage/v1/sha256__6b8971be6dd8206db197c075c2078e750466e8c8086a6781363b3b509236b127.artifactory-metadata
./repositories/digital/admin/revealjs-digital-signage/v1/sha256__6b8971be6dd8206db197c075c2078e750466e8c8086a6781363b3b509236b127.artifactory-metadata/properties.xml
./repositories/digital/admin/revealjs-digital-signage/v1/sha256__6b8971be6dd8206db197c075c2078e750466e8c8086a6781363b3b509236b127.artifactory-metadata/artifactory-file.xml
./repositories/digital/admin/revealjs-digital-signage/v1/sha256__c5ec31d8205545276d3ec1e2a8a77308aa52865dda22241b8e32d4e46daaf82a
./repositories/digital/admin/revealjs-digital-signage/v1/sha256__91cedd97621ca699948e

I need a way or tool that can migrate Jfrog artifacts to gitlab.

question from:https://stackoverflow.com/questions/65876733/gitlab-how-can-i-programmatically-upload-the-artifacts-to-gitlab-registry

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can tell the runner to upload any files or directories you need like this:

artifacts:
  paths:
    - ./repositories/

The full documentation for the artifact keyword is here: https://docs.gitlab.com/ee/ci/yaml/#artifacts


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...