Merge "Rename uuid to build" into feature/zuulv3

This commit is contained in:
Jenkins 2017-07-21 03:51:27 +00:00 committed by Gerrit Code Review
commit d117ad8550
13 changed files with 18 additions and 20 deletions

View File

@ -121,7 +121,7 @@ of item.
All items provide the following information as Ansible variables:
**zuul.uuid**
**zuul.build**
The UUID of the build. A build is a single execution of a job.
When an item is enqueued into a pipeline, this usually results in
one build of each job configured for that item's project. However,
@ -131,8 +131,6 @@ All items provide the following information as Ansible variables:
job is run, for whatever reason, it is acompanied with a new
unique id.
.. TODO: rename build
**zuul.buildset**
The build set UUID. When Zuul runs jobs for an item, the collection
of those jobs is known as a buildset. If the configuration of items

View File

@ -1,3 +1,3 @@
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.bare-role.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.bare-role.flag"
state: touch

View File

@ -1,5 +1,5 @@
- hosts: all
tasks:
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.post.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.post.flag"
state: touch

View File

@ -1,5 +1,5 @@
- hosts: all
tasks:
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.pre.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.pre.flag"
state: touch

View File

@ -4,10 +4,10 @@
path: "{{flagpath}}"
state: touch
- copy:
src: "{{zuul._test.test_root}}/{{zuul.uuid}}.flag"
dest: "{{zuul._test.test_root}}/{{zuul.uuid}}.copied"
src: "{{zuul._test.test_root}}/{{zuul.build}}.flag"
dest: "{{zuul._test.test_root}}/{{zuul.build}}.copied"
- copy:
content: "{{test_secret.username}} {{test_secret.password}}"
dest: "{{zuul._test.test_root}}/{{zuul.uuid}}.secrets"
dest: "{{zuul._test.test_root}}/{{zuul.build}}.secrets"
roles:
- bare-role

View File

@ -59,7 +59,7 @@
pre-run: playbooks/pre
post-run: playbooks/post
vars:
flagpath: '{{zuul._test.test_root}}/{{zuul.uuid}}.flag'
flagpath: '{{zuul._test.test_root}}/{{zuul.build}}.flag'
roles:
- zuul: bare-role
auth:

View File

@ -1,5 +1,5 @@
- hosts: all
tasks:
- copy:
src: "{{zuul._test.test_root}}/{{zuul.uuid}}.flag"
dest: "{{zuul._test.test_root}}/{{zuul.uuid}}.failed"
src: "{{zuul._test.test_root}}/{{zuul.build}}.flag"
dest: "{{zuul._test.test_root}}/{{zuul.build}}.failed"

View File

@ -1,5 +1,5 @@
- hosts: all
tasks:
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.post.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.post.flag"
state: touch

View File

@ -1,8 +1,8 @@
- hosts: all
tasks:
- copy:
src: "{{zuul._test.test_root}}/{{zuul.uuid}}.flag"
dest: "{{zuul._test.test_root}}/{{zuul.uuid}}.failed"
src: "{{zuul._test.test_root}}/{{zuul.build}}.flag"
dest: "{{zuul._test.test_root}}/{{zuul.build}}.failed"
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.pre.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.pre.flag"
state: touch

View File

@ -1,5 +1,5 @@
- hosts: all
tasks:
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.main.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.main.flag"
state: touch

View File

@ -1,3 +1,3 @@
- file:
path: "{{zuul._test.test_root}}/{{zuul.uuid}}.bare-role.flag"
path: "{{zuul._test.test_root}}/{{zuul.build}}.bare-role.flag"
state: touch

View File

@ -14,4 +14,4 @@
- job:
name: python27
vars:
waitpath: '{{zuul._test.test_root}}/{{zuul.uuid}}/test_wait'
waitpath: '{{zuul._test.test_root}}/{{zuul.build}}/test_wait'

View File

@ -155,7 +155,7 @@ class ExecutorClient(object):
canonical_hostname=item.change.project.canonical_hostname,
canonical_name=item.change.project.canonical_name)
zuul_params = dict(uuid=uuid,
zuul_params = dict(build=uuid,
buildset=item.current_build_set.uuid,
ref=item.change.ref,
pipeline=pipeline.name,