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