9 Commits

Author SHA1 Message Date
Mohammed Naser
b56b184d18
Move tox_envlist into job variables for releasenote jobs
At the moment, the tox_envlist is defined inside the include_role
for tox as releasenotes.  This means that other roles which run
beforehand such as tox-siblings will use the default value of
venv instead which isn't always defined.

This patch makes the change to make that variable defined in
the job which means that all other roles will reference the correct
tox envlist in the entire job run.

Change-Id: I0323f8f1bccf720268d947b8e1dcb6c5f8b26dfa
2017-10-12 17:43:48 -04:00
Mohammed Naser
ff7d83cc79
Drop tox_constraints_file from include_role for release notes
The parent of the build-openstack-releasenotes job is openstack-tox
which means that there is no point in defining tox_constraints_file
as it is already globally defined in openstack-tox.

Change-Id: I5f7d58dcd4c300e6b700a972c05e43c5d146765a
2017-10-12 17:40:57 -04:00
Monty Taylor
f5f74d52d8
Make sure releasenotes always build on master
reno expects to be run on the master branch, so add an 'override-branch'
setting to the job.

While we're in there, add a description and remove the tox_envlist var,
as it is hard-coded inside of the role.

Change-Id: Ide918d1bb631590683f96bddc6b43c12c7ab5ac2
2017-10-09 08:48:43 -05:00
Monty Taylor
0fabbf4556
Always build releasenotes from master
reno wants to operate on master. Lucky for reno - we have that.

Change-Id: Ibc8e181b8e0f6fe920b544ea996007519c741254
2017-10-05 13:42:25 -05:00
Mohammed Naser
b80e33039c
Avoid moving release notes after complete execution
Originally, we were moving the release notes to another folder
to make it work with the fetch-sphinx-output role.  However,
this did not always work as expected due to the fact that some
projects do not have a doc folder.

This fixes that issue and avoids the move and simply grabs the
data from the right folder.

Change-Id: If6ee519c33320db91f8a9553ed4abc099c284eec
2017-10-04 21:34:17 -04:00
Mohammed Naser
622155cda7
Switch translated release notes conditionals
This takes the logic of translated release notes conditional
code into Ansible logic for clarity.

Change-Id: I811ffa1aa9fdaf1e8acafa4959874df32a8558ab
2017-10-04 20:46:14 -04:00
Mohammed Naser
74df19df6b
Refactor tox to use the role
This patch switches tox usage to use the new role as well uses
Ansible to move build output.

Change-Id: Ie01e96edac1e1fd9e7f0a3e2d6b39f813a561aa2
2017-10-04 20:46:08 -04:00
Mohammed Naser
65ccea6bc9
Refactor releasenote job to have one path for tox building
The past bash code had two paths for building release notes, it
makes it much harder to refactor and debug (for example, the result
was being moved only if the release notes had translations).

Change-Id: I45272750fc734566d08329d915fbedc10b9eed65
2017-10-04 13:10:48 -04:00
Monty Taylor
21c1d27074
Extract releasenotes build into a role
We need to use it in the publish job as well.

Change-Id: I0ba254501e9f913fd0aff8a03f1b4f127560c759
2017-10-01 10:52:44 -05:00