13 Commits

Author SHA1 Message Date
Paul Belanger
eeec503eda
Set build dir fact for prepare-docs-for-afs
Otherwise, this job is broken.

Change-Id: I15014d714fd1d89febd48d25530aedab07440e7f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-09 12:12:10 -04:00
Paul Belanger
1af99f7795
Rework .root-marker for shell task
We have already created the root-marker above, so need to move it from
html directory.

Change-Id: I621c8ced3df456395853657ae8ba50dc604fa5e0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-08 15:30:48 -04:00
Paul Belanger
f45ff691af
Add chdir for prepare-docs-for-afs
We need to be running out shell commands within the proper git src.

Change-Id: I9bb6bb85b1fc68cd475eddef38ed6bd11ee0f9dc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-08 14:34:25 -04:00
Paul Belanger
d8e1dc6684
Fix syntax error in prepare-docs-for-afs
Change-Id: I5b4d9ee2877ab6f677c61f6a1ec81fae8ce17354
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-08 13:19:15 -04:00
Paul Belanger
62379dccf9
Add prepare-docs-for-afs role
We'll use this role for unified openstack docs publishing.

Change-Id: I879d42cd04ab051b91c0b636856470cd4126b6f2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-08 11:54:02 -04:00
Monty Taylor
2d2a717f29
Ansiblify prepare-infra-docs-for-afs
The existing code in branch made a directory for build/{{ branch.tag |
dirname }} but then moved things to build/{{ branch.tag | basename }}
which produced:

  html/
  html/feature
  html/zuulv3

Fix that. While we're in there, go ahead and change this into individual
ansible tasks.

Change-Id: Ib757d1f8bf76012d2d436565913e750c4a5d52a7
2017-09-06 14:00:44 -05:00
Paul Belanger
ec3e096a4c
Update to using zuulv3 variables
The prepare-docs-for-afs role was using zuulv2 variables,
but these don't exist in zuulv3. Update to using the variables
that do exist. Add a flag to take the place of $2 in the original
script which was called by the docs-tags-only-env builder.

When we migrate, we can just add that variable to the
openstack-doc-build entry in the pipelines of bindep, git-restack and
git-review which are the only three projects which use that flag.

Change-Id: Ib998f83135a4fcb796a205e52c435ab29b7cab7b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-05 18:51:40 -04:00
Paul Belanger
85159bc42f
Refactor run-docs role to use tox role
We can leverate tox role from tox-docs for running out python setup.py
build_sphinx command. This just leaves 'run-docs' role with openstack
specific rename logic.  The next patch in the series will refactor
this another fitting name.

Change-Id: Ic45541089391cea1d0b787a48be002d645cd28ea
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-02 14:45:50 -05:00
Paul Belanger
41f672ba2d Move run-docs.sh intree
So, we need to break the dependency on jenkins/scripts, to do that,
first import the current shell script so we can start ansiblefy it.

Change-Id: I3e58da365badb450977e4ad5438d7612d1074a02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-31 22:31:01 +00:00
Paul Belanger
c0c9653ab5
Ensure we load roles for linting
Did didn't have ansible-lint setup properly, as a results our roles
weren't actually linted properly.

Switch run-docs to command task, since we are not using any shell
variables.

Ignore ANSIBLE0012 for now.

Change-Id: Id184f7eb5dd67117e7dde9c8eb38a3a8af9dd892
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-17 13:18:17 -04:00
James E. Blair
6a8e17bf61 Use zuul-jobs style var names in run-docs
This job still needs to be updated to replace the jenkins script
with ansible.  But so that we can go ahead and remove the
zuul_workspace_root variable from everywhere, replace it with
the variables that we use for the tox jobs in zuul-jobs.

Change-Id: I991dc6c60fb7290be40e8d89ab2cdeb7ab8879c4
2017-07-17 09:51:06 -07:00
Monty Taylor
a74ab6dc96
Rename zuul-run-docs to run-docs
Change-Id: If639d35ded59621c38d0ecb16344817fd176c31c
Depends-On: I19496e372df722efef3a372b4da28a4fd2f79c18
2017-07-06 19:13:13 -05:00
Monty Taylor
e4cd286d56
Copy in run-docs role as zuul-run-docs
Change-Id: Ic408618ba9d5e5b11c9fe5b614736f80fef1f75e
Depends-On: I97c18936fc014283cdf5b57bece49bf92153ff13
2017-07-06 19:11:56 -05:00