[openstack-dev] [all][docs] Incorrect '/p' in Project Source URLs on docs.openstack.org/developer

Jeremy Stanley fungi at yuggoth.org
Fri Oct 16 20:02:15 UTC 2015


On 2015-10-16 15:27:30 -0400 (-0400), Doug Hellmann wrote:
> Maybe we can combine the ideas. Define an option with a default value
> based on an environment variable, and then projects can override it if
> they care about having the doc build generate that link correctly
> outside of CI.
> 
> What do I need to do to expose the environment variable?

Within the calling environment for the jobs on our workers, there is
a $ZUUL_PROJECT variable we can use to get this information.
However, the job is really just a shell script
(jenkins/scripts/run-docs.sh in openstack-infra/project-config)
where we can set any new environment variable oslosphinx cares about
to that value quite trivially. The envvar name should ultimately
just be something which makes sense for oslosphinx outside of the CI
system as well.
-- 
Jeremy Stanley



More information about the OpenStack-dev mailing list