set_envvar_dev_job:
stage: set_envvar
script:
# Environment variables. .env file is used by django settings.py and docker-compose
- echo -e “\nHOSTING_ENV=development” >> $ENV_FILE
- echo HOST=127.0.0.1 >> $ENV_FILE
- echo SKIP_PREFLIGHT_CHECK=true >> $ENV_FILE
- echo PORT=$PORT_DEV >> $ENV_FILE
- echo CI_PROJECT_NAME=$CI_PROJECT_NAME >> $ENV_FILE # useful in manually running docker-compose
rules:
- if: $CI_COMMIT_BRANCH == $BRANCH_DEV
when: always
This is my first job set_env, its failed
Giving the error
Fetching changes with git depth set to 1...
Reinitialized existing Git repository in /home/gitlab-runner/builds/WDJbqqAW/0/cr2_group/crsquare-frontend-guardian/.git/
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://gitlab-ci-token:[MASKED]@gitlab.amepos.in/cr2_group/crsquare-frontend-guardian.git/'