CI_JOB_JWT variable is missing in pipeline
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "type::bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary CI_JOB_JWT variable is missing in pipeline in gitlab v14.4.2 ### Steps to reproduce I don’t know how to reproduce it, because I tried to run the second instance of Gitlab v14.4.2 and everything was ok. ### Example Project - ### What is the current *bug* behavior? CI_JOB_JWT variable is missing in pipeline in gitlab v14.4.2 ### What is the expected *correct* behavior? CI_JOB_JWT is predefined variable. Predefined CI/CD variables must be available in every GitLab CI/CD pipeline ### Relevant logs and/or screenshots ``` $ export 21declare -x CI="true" 22declare -x CI_API_V4_URL="https://****.ru/api/v4" 23declare -x CI_BUILDS_DIR="/builds" 24declare -x CI_BUILD_BEFORE_SHA="0000000000000000000000000000000000000000" 25declare -x CI_BUILD_ID="4008" 26declare -x CI_BUILD_NAME="test" 27declare -x CI_BUILD_REF="7f1d17ee75c728650691061090a381a2ae56b5ca" 28declare -x CI_BUILD_REF_NAME="master" 29declare -x CI_BUILD_REF_SLUG="master" 30declare -x CI_BUILD_STAGE="test" 31declare -x CI_BUILD_TOKEN="[MASKED]" 32declare -x CI_COMMIT_AUTHOR="Максим Шаленко <m.shalenko@****.ru>" 33declare -x CI_COMMIT_BEFORE_SHA="0000000000000000000000000000000000000000" 34declare -x CI_COMMIT_BRANCH="master" 35declare -x CI_COMMIT_DESCRIPTION="" 36declare -x CI_COMMIT_MESSAGE="Update .gitlab-ci.yml" 37declare -x CI_COMMIT_REF_NAME="master" 38declare -x CI_COMMIT_REF_PROTECTED="true" 39declare -x CI_COMMIT_REF_SLUG="master" 40declare -x CI_COMMIT_SHA="7f1d17ee75c728650691061090a381a2ae56b5ca" 41declare -x CI_COMMIT_SHORT_SHA="7f1d17ee" 42declare -x CI_COMMIT_TIMESTAMP="2021-11-22T21:15:58+00:00" 43declare -x CI_COMMIT_TITLE="Update .gitlab-ci.yml" 44declare -x CI_CONCURRENT_ID="0" 45declare -x CI_CONCURRENT_PROJECT_ID="0" 46declare -x CI_CONFIG_PATH=".gitlab-ci.yml" 47declare -x CI_DEFAULT_BRANCH="master" 48declare -x CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX="****.ru:443/m.shalenko/dependency_proxy/containers" 49declare -x CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX="****.ru:443/m.shalenko/dependency_proxy/containers" 50declare -x CI_DEPENDENCY_PROXY_PASSWORD="[MASKED]" 51declare -x CI_DEPENDENCY_PROXY_SERVER="****:443" 52declare -x CI_DEPENDENCY_PROXY_USER="gitlab-ci-token" 53declare -x CI_DISPOSABLE_ENVIRONMENT="true" 54declare -x CI_JOB_ID="4008" 55declare -x CI_JOB_NAME="test" 56declare -x CI_JOB_STAGE="test" 57declare -x CI_JOB_STARTED_AT="2021-11-22T21:29:56Z" 58declare -x CI_JOB_STATUS="running" 59declare -x CI_JOB_TOKEN="[MASKED]" 60declare -x CI_JOB_URL="https://****.ru/m.shalenko/test/-/jobs/4008" 61declare -x CI_NODE_TOTAL="1" 62declare -x CI_PAGES_DOMAIN="example.com" 63declare -x CI_PAGES_URL="http://m.shalenko.example.com/test" 64declare -x CI_PIPELINE_CREATED_AT="2021-11-22T21:28:33Z" 65declare -x CI_PIPELINE_ID="2089" 66declare -x CI_PIPELINE_IID="6" 67declare -x CI_PIPELINE_SOURCE="web" 68declare -x CI_PIPELINE_URL="https://****.ru/m.shalenko/test/-/pipelines/2089" 69declare -x CI_PROJECT_CLASSIFICATION_LABEL="" 70declare -x CI_PROJECT_DIR="/builds/m.shalenko/test" 71declare -x CI_PROJECT_ID="119" 72declare -x CI_PROJECT_NAME="test" 73declare -x CI_PROJECT_NAMESPACE="m.shalenko" 74declare -x CI_PROJECT_PATH="m.shalenko/test" 75declare -x CI_PROJECT_PATH_SLUG="m-shalenko-test" 76declare -x CI_PROJECT_REPOSITORY_LANGUAGES="" 77declare -x CI_PROJECT_ROOT_NAMESPACE="m.shalenko" 78declare -x CI_PROJECT_TITLE="test" 79declare -x CI_PROJECT_URL="https://****.ru/m.shalenko/test" 80declare -x CI_PROJECT_VISIBILITY="private" 81declare -x CI_REGISTRY="****:5050" 82declare -x CI_REGISTRY_IMAGE="****:5050/m.shalenko/test" 83declare -x CI_REGISTRY_PASSWORD="[MASKED]" 84declare -x CI_REGISTRY_USER="gitlab-ci-token" 85declare -x CI_REPOSITORY_URL="https://gitlab-ci-token:[MASKED]@****.ru/m.shalenko/test.git" 86declare -x CI_RUNNER_DESCRIPTION="gitlab-runner-0" 87declare -x CI_RUNNER_EXECUTABLE_ARCH="linux/amd64" 88declare -x CI_RUNNER_ID="4" 89declare -x CI_RUNNER_REVISION="4b9e985a" 90declare -x CI_RUNNER_SHORT_TOKEN="f5xFrAYq" 91declare -x CI_RUNNER_TAGS="docker" 92declare -x CI_RUNNER_VERSION="14.4.0" 93declare -x CI_SERVER="yes" 94declare -x CI_SERVER_HOST="****" 95declare -x CI_SERVER_NAME="GitLab" 96declare -x CI_SERVER_PORT="443" 97declare -x CI_SERVER_PROTOCOL="https" 98declare -x CI_SERVER_REVISION="1ce86e92f81" 99declare -x CI_SERVER_TLS_CA_FILE="/builds/m.shalenko/test.tmp/CI_SERVER_TLS_CA_FILE" 100declare -x CI_SERVER_URL="https://****" 101declare -x CI_SERVER_VERSION="14.4.2" 102declare -x CI_SERVER_VERSION_MAJOR="14" 103declare -x CI_SERVER_VERSION_MINOR="4" 104declare -x CI_SERVER_VERSION_PATCH="2" 105declare -x DOCKER_HOST="tcp://docker:2375" 106declare -x FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION="false" 107declare -x FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR="false" 108declare -x FF_ENABLE_BASH_EXIT_CODE_CHECK="false" 109declare -x FF_ENABLE_JOB_CLEANUP="false" 110declare -x FF_GITLAB_REGISTRY_HELPER_IMAGE="true" 111declare -x FF_NETWORK_PER_BUILD="false" 112declare -x FF_SCRIPT_SECTIONS="false" 113declare -x FF_SKIP_NOOP_BUILD_STAGES="true" 114declare -x FF_USE_DIRECT_DOWNLOAD="true" 115declare -x FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL="false" 116declare -x FF_USE_FASTZIP="false" 117declare -x FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY="false" 118declare -x FF_USE_NEW_BASH_EVAL_STRATEGY="false" 119declare -x FF_USE_NEW_SHELL_ESCAPE="false" 120declare -x FF_USE_POWERSHELL_PATH_RESOLVER="false" 121declare -x FF_USE_WINDOWS_LEGACY_PROCESS_STRATEGY="true" 122declare -x GITLAB_CI="true" 123declare -x GITLAB_FEATURES="" 124declare -x GITLAB_USER_EMAIL="m.shalenko@****.ru" 125declare -x GITLAB_USER_ID="87" 126declare -x GITLAB_USER_LOGIN="m.shalenko" 127declare -x GITLAB_USER_NAME="Максим Шаленко" 128declare -x HOME="/root" 129declare -x HOSTNAME="runner-f5xfrayq-project-119-concurrent-0" 130declare -x NODE_VERSION="12.22.1" 131declare -x OLDPWD="/" 132declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 133declare -x PWD="/builds/m.shalenko/test" 134declare -x SHLVL="1" 135declare -x YARN_VERSION="1.22.5" 137 Cleaning up project directory and file based variables 00:01 139Job succeeded ``` ### Output of checks - #### Results of GitLab environment info - <details> <summary>Expand for output related to GitLab environment info</summary> <pre> (For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`) </pre> </details> #### Results of GitLab application Check <!-- Input any relevant GitLab application check information if needed. --> <details> <summary>Expand for output related to the GitLab application check</summary> <pre> (For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing) </pre> </details> ### Possible fixes <!-- If you can, link to the line of code that might be responsible for the problem. -->
issue