ci-info
ci-info copied to clipboard
Support for concourse
Hi,
IT seems this library does not detect concourse ci : https://concourse-ci.org
Would be great if you could support it.
Thank you.
@oliveti looking through their documentation I think maybe we can check for the CONCOURSE_EXTERNAL_URL
environment variable. But I'm not a 100% sure. Do you have any experience in which envs are always present?
This environment variable is not available in tasks (where we can run scripts) for design reasons. Here is the list of environment variables accessible.
USER=xxx PWD=/tmp/build/b504838c/source HOME=xxx https_proxy=xxx http_proxy=xxx no_proxy=xxx SHLVL=1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin _=/usr/bin/env
Hmm... those are all very generic I think. Any idea of what else we can look at to detect the correct environment?
I do not really know what could be used here. For now I export an environment variable (CI) in my docker image.
Hm, yeah the issue is probably that since this is something that people run inside their own Docker images, there's no guarantee that they export/use any environment variables that we can detect.
I've opened an issue on the Concourse GitHub repo asking for help: concourse/concourse#2105