67 Commits

Author SHA1 Message Date
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
Zuul
74d87f891c Merge "Add prepare-docs-for-afs role" 2017-09-08 16:25:06 +00: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
David Moreau-Simard
5fbcc7e0e2 Move openstack-specific jobs to openstack-zuul-jobs
We're in the process of adding jobs to test our base job on different
distributions and ensure there's no regressions.
These are openstack-specific so let's move them from zuul-jobs.

Change-Id: Ic04c48d7a0e15459632b91bce81e777d12622222
Depends-On: Ie29ee24b631f659f3330f5c631e2850f6b8cb463
2017-09-07 15:24:00 -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
Zuul
294d778ce8 Merge "Update to using zuulv3 variables" 2017-09-06 02:13:33 +00:00
Zuul
77d0e517e3 Merge "Refactor run-docs role to use tox role" 2017-09-06 02:11:44 +00:00
Zuul
439275eee6 Merge "Move run-docs.sh intree" 2017-09-06 02:11:17 +00: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
Zuul
bc14527318 Merge "Remove bindep_command and bindep_fallback references" 2017-09-02 13:26:56 +00: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
Monty Taylor
f3d3983bfd
Add publish-to-pypi-quietly project-template
There are some things that want to release to PyPI but do not want to
generate OpenStack release emails or upper-constraints bumps. Make a
template for them too.

While we're in here, add a description to publish-to-pypi as well.

Change-Id: I75850f8f6e3a4b7eb796afa4f5ea947dfce347f8
2017-08-30 16:53:58 -05:00
James E. Blair
333d504818 Add docs-on-readthedocs project template
Co-Authored-By: Monty Taylor <mordred@inaugust.com>

Change-Id: Ida1a023b1c2e0357cab52699c42f409134d4c832
Depends-On: I4392480ed97082e947a65d2a4ca3450072568227
2017-08-30 12:39:55 -07:00
Zuul
74b1dd52b6 Merge "Add comment to top of zuul.yaml pointing to other files" 2017-08-30 14:06:22 +00:00
Monty Taylor
94d3d5463f
Add openstack-python-jobs and openstack-python35-jobs
We have all the jobs for this now, make the template so we can start
using it.

Change-Id: Ib4a11b64bd897da70cb27dd99c938177020e1bd6
2017-08-30 08:26:40 -05:00
Monty Taylor
059e997535
Add comment to top of zuul.yaml pointing to other files
Zuul v3 config is spread across a bunch of repos, so figuring out where
somethig is defined may be daunting for a newcommer. Add a comment
to the top of the file pointing people at other repos they should be
aware of.

Also remove self-referencing roles declaration since job repos
automatically get their own roles now.

Change-Id: Ib9f966ff96f6617e8a7ce3b1e9aa4862f9e12a75
2017-08-30 08:10:03 -05:00
Monty Taylor
a5838ece30
Remove bindep_command and bindep_fallback references
With the settings in site-variables now, we don't need them here.
Although these jobs are openstack specific, there's still no need to
duplicate ourselves.

Change-Id: I1270639344044567a7960d5f8d98afffe69cf092
Depends-On: I94dfe8e6aab9c2da1283590be5e26f7d8c35dcad
2017-08-29 13:59:20 -05:00
Monty Taylor
cf1adb66a0
Add release-announce job and publish-to-pypi template
This one is refreshingly easy.

We also have all the jobs needed now, so add a project-template
that matches the v2 publish-to-pypi template.

Depends-On: I901331a6b2dd7d269d5e356e76674ef9635924b5
Change-Id: Id9e346aefd6e783a184f3a4bb5d4b256a7448799
2017-08-29 13:49:43 -05:00
Monty Taylor
b13fd7d7a0
Add build-openstack-python-tarball job
So that folks can gate on their tarballs working properly.

Also make sure tox is around in pre-run not run.

Change-Id: Id167cdaa2c527637c35a68e86f936b77b27ca983
2017-08-22 19:35:56 -04:00
Paul Belanger
cdc3f2bad2 Remove publish-openstack-python-branch-tarball job
We'll be moving this into project-config

Change-Id: Ie577aa1c603158b1a71f8107113de51bddc1a771
Depends-On: I8ef01f14b2bde71c335017f0bbc8532b91f226b6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-18 15:35:22 -04:00
Paul Belanger
8dab0632b8 Replace slash for tarball rename
It is possible for a branch to be feature/zuulv3, as a result that
breaks our renaming process. Replace / with -.

Change-Id: I17aed5fc284e2a173d8e4853105a1ee30c28cad9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-16 19:51:09 -04:00
Monty Taylor
c3fa84a6b8
Use openstack-publish-artifacts base job
We're renaming these to make it clearer.

Change-Id: Iad5001a0591e1a019465b72c05ea36aee334e903
Depends-On: Iea819609d2f4e343c554a08392fa0620841c3dac
2017-08-10 18:55:53 -05:00
James E. Blair
c960fdb68c Add openstack-zuul-jobs to gate pipeline
Change-Id: If6845e5dd8751707eec4fadc8bf1dc2199b93d87
Depends-On: Ia870b833802010d0c61d7190835bc8b149f49e34
2017-08-10 14:15:56 -07:00
Paul Belanger
f67d09d315 Create publish-openstack-python(-branch)-tarball jobs
These 2 jobs will be used to copy release / branch tarballs to
tarballs.o.o.

Branch tarballs will only copy *.tar.gz, while release jobs will copy
both *.tar.gz and *.whl files.

Change-Id: Ic879302a2006b737ee4364cea067a00ebe198951
Depends-On: Ia79802dd386dbf1287af16a59985ce99a7dd4899
Depends-On: Ic7fc31a372de29a3a97ef84539faf3b0a1d6e181
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-10 13:19:08 -04:00
Paul Belanger
0d5c11029a Setup ANSIBLE_ROLES_PATH in tox.ini
It is possible we are going to depend on roles in other repos (like
the next patch). Move this to using an environmental variable to make
it easier to depend on external roles.

Change-Id: Ia90ac5674188d38a6a749c92de957430d5a5403c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-07 16:15:11 -04:00
Paul Belanger
dc767038eb Set basepython to python3
We are running zuulv3 under python3, so it make sense to ensure
ansible dependencies are also testing with python3.

Change-Id: I2d011d62c1d5192c0f309e37c2d30c8598cce359
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-07 16:13:30 -04:00
Jenkins
1b3f654a5d Merge "Create tox-py35-constraints job" 2017-07-25 20:21:54 +00:00
Paul Belanger
9838085d63
Create tox-py35-constraints job
Add a new job for openstack projects that are using upper-constraints
from the requirements project.

Change-Id: Ib9f0a787998f34414c8072074113d29cdb8cdb59
Depends-On: Ic4a5644e79ca7000cbdaee40467619a6832c8332
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-25 14:28:18 -04:00
Paul Belanger
1d265e48f6
Rename pep8 to linters for tox
Using linters makes more sense, for playbooks / roles. Make the
switch.

Change-Id: Ib5a4f7409276aa832783f1d217530b5249313611
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-17 13:18:21 -04:00
Paul Belanger
ea35d7ffc9
Include ansible-playbook syntax-check for tox pep8
Syntax check our playbooks / roles when we run pep8. This way we can
quickly tests if our playbooks are valid.

Change-Id: I2f4e3f617922c8578adb53e2c4a418488fcf230b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-17 13:18:19 -04: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
88c7e136c3
Add tox-py35-on-zuul job definition
Define the tox-py35-on-zuul job here so that it's local only to
openstack's zuul config. We'll add it to the pipeline in project-config.

Change-Id: Icf40921e609e7f83518d6cbb15614203cf632b37
Depends-On: I43061135bafdd8946cbedac9cdf06811ff1d1c8e
2017-07-11 16:48:12 -05: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
Monty Taylor
bc6fbb1fa7
Switch from zuul-tox to tox
Change-Id: I0ca558870e7da1e63491c88b873c385977e606fc
Depends-On: I3fc7f89f4939fbcf82f329441d4b4693b80f6bc4
2017-07-06 18:48:37 -05:00
Monty Taylor
c17b5140e5
Rename .zuul.yaml to zuul.yaml
The primary purpose of this repo is hosting zuul jobs.

Change-Id: I08420b084e6fd901090ad5ee543ffe9e75646ed5
2017-07-06 18:47:49 -05:00
Monty Taylor
982e4ed8c7
Remove base tox jobs and rename tox-docs
These are defined in zuul-jobs now. Because the tox-docs in zuul-jobs is
a general purpose "run tox -edocs" job, we should call the openstack
variant that does other things something else.

Depends-On: I19fd6cb20b09b931873a0d9c85ebefabbf2c8373
Depends-On: Ife2b603710e8bdba7eac5fffe68dc41c97f336cf
Change-Id: I828e38d3efd4817146cc6b1fefaa7b5bab71fdf7
2017-07-06 18:47:42 -05:00
James E. Blair
075b4e4510 Correct playbook paths
We removed the implied "playbooks/" for explicit run settings.

Change-Id: I8ff204fcf45f4f3b250436727d408527a90a4449
2017-06-28 10:34:49 -07:00
James E. Blair
42faeda638 Remove base job
This is being moved to project-config because it needs to be
trusted.

Change-Id: I4151695c50253b73a021289ad94493a6b3d8f7ae
Depends-On: I6781923f08b39cfb6778ae581e0dea3b51ea31c4
2017-06-27 15:59:17 -07:00
Jenkins
7ec6b6ae0c Merge "Ensure gather_subset is a list" 2017-06-16 16:10:45 +00:00
Paul Belanger
a4269cbded
Remove zuulv3-dev log publisher
This no longer makes sense in zuulv3.o.o. We actually want to publish
to logs.o.o, but we are missing SSH private keys currently.  For now,
just delete this old code as it appears to be delaying jobs.

Change-Id: I2f4007c91f0f3131d7fc8e36a1d32cc38e686ec5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-06-15 14:53:21 -04:00
Paul Belanger
ee4a856ca9
Ensure gather_subset is a list
Otherwise, we get a deprecation warning:

  [DEPRECATION WARNING]: Using comma separated values for a list has been
  deprecated. You should instead use the correct YAML syntax for lists.

Change-Id: I59194aa420c449a5d557dfa087f7ab3ec6521afa
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-06-14 15:06:50 -04:00
Paul Belanger
6e8064796b
Add libffi / libssl for cryptography dependencies
We need to compile cryptography for ansible / ansible-lint
dependencies.

Change-Id: I266d71dbb1bff7b6a6bd0f506cb49d568e1a0466
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-06-12 12:59:46 -04:00
James E. Blair
173895b95d Change image to label
We renamed this config attribute.

Change-Id: I576ba31426788f5a525c7fb767d555b5f51bd2d3
2017-06-09 14:52:20 -07:00
Jenkins
64431756fd Merge "Gather facts for run-bindep role" 2017-06-08 19:46:13 +00:00
Jenkins
be2343576f Merge "Run ansible-lint under pep8 envlist" 2017-06-08 19:45:30 +00:00