Skip to content
Snippets Groups Projects
Commit c3f93f21 authored by Eskudero Gurrutxaga, Ibon's avatar Eskudero Gurrutxaga, Ibon
Browse files

use build variables to make npm install on license_checker

parent 0384f893
No related branches found
No related tags found
No related merge requests found
...@@ -27,12 +27,10 @@ license_check: ...@@ -27,12 +27,10 @@ license_check:
script: script:
# connect job from artifactory_connect.yml # connect job from artifactory_connect.yml
- !reference [.connect, script] - !reference [.connect, script]
# if PACKAGE_DIR is not ".", copy .jfrog folder to PACKAGE_DIR
- if [ "$PACKAGE_DIR" != "." ]; then cp -r .jfrog $PACKAGE_DIR; fi
# Change to the directory containing package.json # Change to the directory containing package.json
- cd $PACKAGE_DIR - cd $PACKAGE_DIR
# install dependencies # install dependencies
- jfrog rt npm-install - jfrog rt npmi --build-name='license' --build-number=$CI_JOB_ID
- jsgl --local ./ || exit 1 - jsgl --local ./ || exit 1
only: only:
- tags - tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment