Loading templates/gitlab-ci-maven-jib.yml +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ variables: .mvn-jib-scripts: &mvn-jib-scripts | # BEGSCRIPT set -e set -eo pipefail function configure_registries_auth() { maven_jib_snapshot_authn_token=$(echo -n "${MAVEN_JIB_REGISTRY_SNAPSHOT_USER:-${MAVEN_JIB_REGISTRY_USER:-$CI_REGISTRY_USER}}:${MAVEN_JIB_REGISTRY_SNAPSHOT_PASSWORD:-${MAVEN_JIB_REGISTRY_PASSWORD:-$CI_REGISTRY_PASSWORD}}" | base64 | tr -d '\n') Loading templates/gitlab-ci-maven.yml +3 −2 Original line number Diff line number Diff line Loading @@ -266,7 +266,7 @@ stages: .mvn-scripts: &mvn-scripts | # BEGSCRIPT set -e set -eo pipefail function log_info() { echo -e "[\\e[1;94mINFO\\e[0m] $*" Loading Loading @@ -603,7 +603,8 @@ stages: } function eval_all_secrets() { encoded_vars=$(env | grep -v '^scoped__' | awk -F '=' '/^[a-zA-Z0-9_]*=@(b64|hex|url)@/ {print $1}') # exclude scoped variables and their copies passed to container services (`<service_name>_ENV_scoped__xxx`) encoded_vars=$(env | awk -F '=' '$1 !~ /(^|_ENV_)scoped__/ && $2 ~ /^@(b64|hex|url)@/ {print $1}') for var in $encoded_vars do eval_secret "$var" Loading Loading
templates/gitlab-ci-maven-jib.yml +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ variables: .mvn-jib-scripts: &mvn-jib-scripts | # BEGSCRIPT set -e set -eo pipefail function configure_registries_auth() { maven_jib_snapshot_authn_token=$(echo -n "${MAVEN_JIB_REGISTRY_SNAPSHOT_USER:-${MAVEN_JIB_REGISTRY_USER:-$CI_REGISTRY_USER}}:${MAVEN_JIB_REGISTRY_SNAPSHOT_PASSWORD:-${MAVEN_JIB_REGISTRY_PASSWORD:-$CI_REGISTRY_PASSWORD}}" | base64 | tr -d '\n') Loading
templates/gitlab-ci-maven.yml +3 −2 Original line number Diff line number Diff line Loading @@ -266,7 +266,7 @@ stages: .mvn-scripts: &mvn-scripts | # BEGSCRIPT set -e set -eo pipefail function log_info() { echo -e "[\\e[1;94mINFO\\e[0m] $*" Loading Loading @@ -603,7 +603,8 @@ stages: } function eval_all_secrets() { encoded_vars=$(env | grep -v '^scoped__' | awk -F '=' '/^[a-zA-Z0-9_]*=@(b64|hex|url)@/ {print $1}') # exclude scoped variables and their copies passed to container services (`<service_name>_ENV_scoped__xxx`) encoded_vars=$(env | awk -F '=' '$1 !~ /(^|_ENV_)scoped__/ && $2 ~ /^@(b64|hex|url)@/ {print $1}') for var in $encoded_vars do eval_secret "$var" Loading