$ echo "JOB_ID=$CI_JOB_ID" > job.env $ cat job.env JOB_ID=1582098 Uploading artifacts for failed job Uploading artifacts... job.env: found 1 matching files and directories Uploading artifacts as "dotenv" to coordinator... ok id=1582098 responseStatus=201 Created token=E2M-6JEV Cleaning up project directory and file based variables ERROR: Job failed: exit code 1