mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Fix Danger job failing due to missing NODE_INSTALL_VERSION
https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/651 removed the argument handling in `scripts/install-node`, but this led to a build failure in https://gitlab.com/gitlab-org/gitlab-build-images/-/jobs/3916618504 since `NODE_INSTALL_VERSION` is not always exported. We restore the parsing of the arguments, but leave out the default values.
This commit is contained in:
parent
6cb9ebafe9
commit
0e513f4d08
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
set -xeuo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
NODE_INSTALL_VERSION=${1}
|
||||
YARN_INSTALL_VERSION=${2}
|
||||
|
||||
# Map MAJOR.MINOR.patch -> MAJOR.x
|
||||
NODE_MAJOR=$(echo "$NODE_INSTALL_VERSION" | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue