continuous integration - Gitlab-CI how to use artifacts in different pipeline -


currently, have 2 main project.

1-) vue project contains (webviews ios , android, websites, , renderer our electron ) sharing components & api's.

2-) electron project builds desktop app (windows, darwin, linux)

i automate our building, releasing process. current setup..

            before_script:                  - apt-get update                 - apt-get install zip unzip                  - rm -rf vue-project                 - git clone vue-project                 - cd vue-project                 - git checkout dev                 - git pull                 - sed -i "/\b\(areacode\|inline-svg-loader\)\b/d" ./packages/devtool/package.json                 - yarn install                 - ln -s vue-project/packages/desktop/ web                 - npm install              build_darwin:                 stage: build                 script:                     - npm run package -- darwin --deploy                 cache:                     paths:                         - vue-project/node_modules                         - node_modules 

which before bundling electron project it's cloning vue-project install dependencies , bundling electron-renderer when it's finish. i'm running package.

i separate 2 different job each other. there anyway use artifacts different project gitlab-ci pipelines ?

any appreciated.

gitlab has api alot of tricks.

curl --header "private-token: 9koxpg98eahejpvbs5tk" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/download?job=test" 

for download file.

curl --header "private-token: yourprivatetoken" -o artifacts.zip "http://gitlab.example.net/api/v4/projects/<projectnumber>/jobs/artifacts/master/download?job=build_desktop 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -