Hi Guys!
I’m trying to create screenshot to artifacts folder
But it looks like our build does not contain environment variable CIRCLE_ARTIFACTS
My debug code:
puts "CIRCLECI #{ENV['CIRCLECI']}"
puts "CIRCLE_ARTIFACTS #{ENV['CIRCLE_ARTIFACTS']}"
puts "ENV #{ENV.keys}"
Result:
CIRCLECI true
CIRCLE_ARTIFACTS
ENV ["CIRCLE_BUILD_NUM", "BLUEMIX_SSL", "NODE_VERSION", "HOSTNAME", "CIRCLE_NODE_TOTAL", "GEM_HOME", "STORAGE_USERNAME", "CIRCLE_INTERNAL_SCRATCH", "STORAGE_STORAGE_URL", "STORAGE_PROJECT_NAME", "CIRCLE_PROJECT_USERNAME", "STORAGE_USER_DOMAIN", "CIRCLE_INTERNAL_TASK_DATA", "NPM_CONFIG_LOGLEVEL", "NO_PROXY", "STORAGE_AUTH_URL", "CIRCLE_NODE_INDEX", "CIRCLE_COMPARE_URL", "BUNDLE_SILENCE_ROOT_WARNING", "CIRCLE_BRANCH", "SSH_AUTH_SOCK", "CIRCLE_JOB", "BUNDLE_APP_CONFIG", "repo_token", "CIRCLE_WORKING_DIRECTORY", "PATH", "CIRCLE_USERNAME", "RUBY_DOWNLOAD_SHA256", "CIRCLE_PREVIOUS_BUILD_NUM", "PWD", "COVERALLS_REPO_TOKEN", "CIRCLE_STAGE", "LANG", "RUBY_MAJOR", "RUBYGEMS_VERSION", "BUNDLE_BIN", "STORAGE_PROJECT_ID", "CIRCLE_BUILD_URL", "BLUEMIX_ORG_ID", "CIRCLECI", "SHLVL", "STORAGE_PASSWORD", "HOME", "YARN_VERSION", "RAILS_ENV", "CIRCLE_SHA1", "CI", "CIRCLE_REPOSITORY_URL", "CIRCLE_INTERNAL_CONFIG", "BLUEMIX_API_TOKEN", "BASH_ENV", "BUNDLE_PATH", "CIRCLE_SHELL_ENV", "DEBIAN_FRONTEND", "DISPLAY", "BLUEMIX_HOST", "CIRCLE_PROJECT_REPONAME", "STORAGE_SETTINGS_CONTAINER", "RUBY_VERSION", "PRONTO_GITHUB_ACCESS_TOKEN", "BLUEMIX_API_KEY", "BUNDLER_VERSION", "_", "BUNDLER_ORIG_PATH", "BUNDLE_BIN_PATH", "BUNDLE_GEMFILE", "RUBYOPT", "RUBYLIB", "GEM_PATH", "RAILS_ROOT", "RACK_ENV"]
So CIRCLE_ARTIFACTS
is nil