diff --git a/templates/gitlab-ci-angular.yml b/templates/gitlab-ci-angular.yml index 67f1f67b0d286a89710940936ea0ad90fb4308dc..9ae6277c1848f06fe5f56cd5266057168462730c 100644 --- a/templates/gitlab-ci-angular.yml +++ b/templates/gitlab-ci-angular.yml @@ -238,24 +238,6 @@ stages: log_info "... done" } - function get_latest_template_version() { - tag_json=$(wget -T 5 -q -O - "$CI_API_V4_URL/projects/to-be-continuous%2F$1/repository/tags?per_page=1" || echo "") - echo "$tag_json" | sed -rn 's/^.*"name":"([^"]*)".*$/\1/p' - } - - function check_for_update() { - template="$1" - actual="$2" - latest=$(get_latest_template_version "$template") - if [[ -n "$latest" ]] && [[ "$latest" != "$actual" ]] - then - log_warn "\\e[1;93m=======================================================================================================\\e[0m" - log_warn "\\e[93mThe template \\e[32m$template\\e[93m:\\e[33m$actual\\e[93m you're using is not up-to-date: consider upgrading to version \\e[32m$latest\\e[0m" - log_warn "\\e[93m(set \$TEMPLATE_CHECK_UPDATE_DISABLED to disable this message)\\e[0m" - log_warn "\\e[1;93m=======================================================================================================\\e[0m" - fi - } - function read_default_project() { # current directory should be ${NG_WORKSPACE_DIR} angular_json=./angular.json @@ -388,7 +370,6 @@ stages: } - if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update angular "2.1.0"; fi unscope_variables # ENDSCRIPT