Commit Graph

31 Commits

Author SHA1 Message Date
James E. Blair bc6188a7b3 Add nodesets
These nodesets are currently defined in openstack-zuul-jobs but
should really be here for the convenience of all tenants.

Change-Id: Ie7fa634048304a64a1d86de22f1315e03b9e6e9c
Depends-On: https://review.opendev.org/670384
2019-07-11 20:06:45 +00:00
James E. Blair df15c7cb44 Allow artifact promote jobs a little more control over renaming
In Zuul, we're publishing both the sdist and the js-content tarball,
but because of the strict naming rules encoded in the promote job,
they are both renamed to "zuul-master.tar.gz".  Instead, let the
js content job specify that it should have a slightly different
name.

Change-Id: I57e6173e3ee058665e908aba786f8966a8d812f4
2019-06-12 13:12:32 -07:00
James E. Blair f564d1c6a5 Fix js content tarball job name
This is the actual name of the job which makes a js tarball.

Change-Id: Iabcd94592c2c0a128f993d26c34eb3a760dcb003
2019-06-07 12:00:11 -07:00
James E. Blair e07645091b Add jobs to publish artifacts to tarballs.opendev.org
Change-Id: If55d1a15967437e57a85a52cebf5cbc584ceae17
Depends-On: https://review.opendev.org/663056
2019-06-05 13:07:09 -07:00
James E. Blair c9f558b14b Correct intermediate registry key
Change-Id: Ifbdffa66d2c87c077ed4ce9a6b3d93dc38b33052
2019-04-24 08:43:10 -07:00
Monty Taylor 6e664104e4 Update opendev intermediate registry secret
We re-keyed the server, so we need to update the client.

Change-Id: I853c501b286cbdfc6addff0b688fd4fc7311ad36
2019-04-23 18:19:30 +00:00
OpenDev Sysadmins f059edc526 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:35 +00:00
Monty Taylor e0c347ace3 Use zuul-jobs roles path for linters
We need the roles from zuul-jobs for linting our playbooks. This
is copied from project-config. In order to satisfy that, add
zuul-jobs to the required projects so that it'll get cloned and
pushed to the test node.

Change-Id: Ib2e2a6a4b05071199e14570c445dc1a2eda9e9b7
2019-04-17 14:09:46 +00:00
Monty Taylor fb14f0cc36 Use tox-linters for opendev
The openstack-zuul-jobs-linters job doesn't exist, since it's
in the openstack-zuul-jobs repo. Just use tox-linters.

Change-Id: I77a3849086dd234bc374305ae4853d2f56e39daa
2019-04-09 13:28:53 +00:00
James E. Blair e8ad51ae41 Always pause docker build jobs
The design idea for these jobs was that the buildset-registry job
would be used in systems where a dedicated registry job was desired
(e.g., because there are multiple image build jobs).  The image-build
job inherits from the buildset-registry job so that if a registry is
not already running, it runs one, but it overrides the playbook so
that it does not pause.  In other words, it was meant only to do what
is necessary to build its own image(s), not to serve them to other
jobs.

However, in the (arguably common) case that a repo has a single image
build job as well as jobs which could consume those images, it would
be efficient to have the image build job run the registry, build the
images, then pause for the registry to be used by the consuming jobs.

Rather than ask users to make a new playbook which restores the job
pause, let's have the image build job pause iff it is running a
buildset registry.  If there are no child jobs, Zuul will resume
the job immediately, so there won't be any change in behavior.  But
if there are child jobs, they will be able to use the registry
running on the image build job.

Change-Id: Iebd47305eeafbfaac0f699aae3e0a7d7a36f85ee
2019-04-02 15:12:34 -07:00
James E. Blair b5ee39ce08 Make docs secret template expansion safe
Ansible will try to expand all of these variables if any is used,
even if some of them aren't used.  Therefore, make sure that
we have values in the jinja templates for zuul.branch or zuul.tag.

Also, correct the redirect content to avoid a loop.

Change-Id: I426c99b66ff00b709f249cb78bfc6c3d200f73cd
2019-04-02 11:01:01 -07:00
James E. Blair 393353a381 Add opendev-release-python job
This publishes to pypi in the usual manner, though it does not
GPG sign or upload to a tarballs site (owing to the lack of a
tarballs.opendev.org site at the moment).

Change-Id: Ia9c078841acd741149a8c5eae80393bbfd4aaaa6
2019-04-01 14:56:08 -07:00
James E. Blair edab04d5ef Rework docs jobs to be consumable by tenants
This refactors the docs publication/promote jobs so that there
are base versions which can be consumed by tenants who will supply
their own AFS secrets, as well as versions for use in this tenant
(which consume the base versions in exactly the way another tenant
would).

The documentation policies for the tenant are encoded in the secret,
so each tenant can choose the publication locations and scheme once
and allow all projects within that tenant to use these jobs.

Change-Id: I8f201c0351d4d532ddcbcf1f22f9297dece04fff
2019-04-01 12:02:31 -07:00
James E. Blair 037616d647 Add opendev-publish-tox-docs
This job is meant to be used in a tag or release pipeline to build
and publish docs for a tag.

Change-Id: I43dd83f06d227153026f3007c76f206b2be055f4
2019-03-29 13:43:29 -07:00
James E. Blair fc233e2194 Obtain AFS creds in docs promote
Obtain and destroy an afs token before attempting to write to AFS.
This also adds a new secret with the keytab for a new opendev
afs service principal.

Change-Id: Ia76f288b894b396effe72ec66eb49237f3f6cea6
2019-03-22 14:37:43 -07:00
James E. Blair 68d7800566 Use new opendev docs jobs
Change-Id: Ia2df1298f9503bbaac32870d4aeba05ad1b40aa2
2019-03-22 11:27:11 -07:00
James E. Blair 6862dd0358 Add opendev docs build/promote jobs
This is a new style of docs job which transfers data
via tarballs and can publish branch-tip documentation
in the promote pipeline.

Depends-On: https://review.openstack.org/645384
Change-Id: I6f30f9c7016f54ee66d90c6dc3e6d9c603724b10
2019-03-22 11:26:38 -07:00
Zuul 88027203cb Merge "Document the OpenDev docker image jobs" 2019-03-15 19:48:26 +00:00
James E. Blair b4f2e640d9 Document the OpenDev docker image jobs
Change-Id: I4d3a7156fb3275049e58c535a2a1beee13e17766
2019-03-15 08:39:14 -07:00
Zuul 675da95668 Merge "Switch default nodeset to ubuntu-bionic" 2019-03-13 21:53:29 +00:00
James E. Blair f4a85956a6 Update intermediate registry password
This has been re-keyed to go into production.

Change-Id: I72a99f885c87356415ce56f4e197a15b433dc358
2019-03-12 13:40:44 -07:00
Jeremy Stanley 65bc5cd01d Switch default nodeset to ubuntu-bionic
Following the plan described in
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003584.html
the default node type is changed to ubuntu-bionic. Projects which
need to use other nodesets on different branches for certain jobs
must add matchers for those branches to override them accordingly.

Depends-on: https://review.openstack.org/641895

Change-Id: Ib599e17e97abab5dc1f122860126c1b1061b47e1
2019-03-08 01:33:02 +00:00
Jeremy Stanley b4de065593 Test changing the default nodeset to ubuntu-bionic
Before changing the default nodeset on the base job, do it on
base-test so we can perform preliminary testing of the intended
change.

Change-Id: I8e61bb53d561b5a5159382afd2c9791cae32a17a
2019-03-07 23:14:46 +00:00
James E. Blair 3fcf81555b Correct provides/requires on buildset-registry job
The buildset registry job "requires" images, because that's where
they are imported into from the intermediate registry, even if
the buildset registry is run as a standalone job.

The build job inherits from the buildset registry job and therefore
no longer needs an explicit requires line, it inherits it.

Change-Id: I4372f1255411c96d6f65a10368805df785977481
2019-03-05 08:51:52 -08:00
James E. Blair b97b47dcd8 Remove promote playbook from opendev-promote-docker-image
This job inherits from promote-docker-image in zuul-jobs which
contains this playbook already; therefore, this job simply
duplicated the playbook.  Remove it.

(You may note this job doesn't add anything to the parent, it
exists only for naming consistency, so that people can just use
the trio of opendev jobs instead of the upstream ones.)

Change-Id: Ib3afc56eadcffe889713dab49f12d836c87c0740
2019-03-01 19:55:38 -08:00
James E. Blair 4521eee742 Add run playbook to opendev-buildset-registry
The file is already there, but it wasn't added to the job definition.
The playbook merely pauses the job.

Change-Id: I2ac38fab54da00e6c7671dca0b54b3d9454560a7
2019-02-22 14:13:21 -08:00
James E. Blair c0b74ae5c7 Remove pre playbook from opendev-build-docker-image
This playbook only installed docker, but that's already handled
by the parent job's pre-playbook.  This ended up overwriting the
buildset registry configuration.

Change-Id: I8b9fc34e4c1dd045248f6065a31afb975f2f9aae
2019-02-22 11:35:48 -08:00
James E. Blair 3c0baa2c57 Add docker image jobs
Change-Id: I6d5621686c80ca9a328feb84906bb1cccc31c980
Depends-On: https://review.openstack.org/638706
2019-02-22 08:50:23 -08:00
Andreas Jaeger dc08b526f6 Add docs
Add documents to document roles and jobs and a job to test these.

These are not published yet since I don't know where to publish them
currently. Let's add them so that we can ensure that no breakage is
introduced.

Change-Id: I013ab998aba182a29ff4345c975b332406b1a197
2019-02-09 11:42:05 +01:00
Andreas Jaeger 2fb73ee8fa Add linting jobs
Add usual linting job for this repo to have some basic testing.

Also, add the normal .gitignore to blacklist .tox and some other files.

Note this change is not self-testing since the repo is a config-project.

Change-Id: Ie54095f39f9bb4d10d6f809c573ea712f3885af6
2019-02-09 11:39:20 +01:00
Clark Boylan 3ecfa1968d Initial pass at global opendev base job set
This adds needed roles, playbooks and secrets for our global base jobs.

Change-Id: I466bc1b8b33ea806f0ec39aa9aca32b91e28e7f1
2019-01-28 13:59:24 -08:00