summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-09-08 17:46:25 +0200
committerAndreas Jaeger <aj@suse.com>2018-09-09 17:52:04 +0200
commit855f132414762044c856ca6763682c4a905d34ba (patch)
tree71cd0b4b818886296a8962712141236a4cbe130a
parentc74ae40470ab85756d4a494b7bf914aa37504983 (diff)
Import legacy jobHEADmaster
Import legacy job legacy-manila-test-image-build and rename it according to Zuul v3 naming conventions. Change-Id: I9bb1dd0acb8a55d658330ea4be95bcc65691f76d
Notes
Notes (review): Code-Review+2: Tom Barron <tpb@dyncloud.net> Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Workflow+1: Goutham Pacha Ravi <gouthampravi@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 02 Oct 2018 19:24:51 +0000 Reviewed-on: https://review.openstack.org/600956 Project: openstack/manila-test-image Branch: refs/heads/master
-rw-r--r--.zuul.yaml8
-rw-r--r--playbooks/manila-test-image-build/run.yaml49
2 files changed, 56 insertions, 1 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index fcf2d38..13764ce 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,3 +1,9 @@
1- job:
2 name: manila-test-image-build
3 parent: legacy-base
4 run: playbooks/manila-test-image-build/run.yaml
5 timeout: 3600
6
1- project: 7- project:
2 check: 8 check:
3 jobs: 9 jobs:
@@ -7,4 +13,4 @@
7 - openstack-tox-bashate 13 - openstack-tox-bashate
8 experimental: 14 experimental:
9 jobs: 15 jobs:
10 - legacy-manila-test-image-build 16 - manila-test-image-build
diff --git a/playbooks/manila-test-image-build/run.yaml b/playbooks/manila-test-image-build/run.yaml
new file mode 100644
index 0000000..80cdeb0
--- /dev/null
+++ b/playbooks/manila-test-image-build/run.yaml
@@ -0,0 +1,49 @@
1- hosts: all
2 name: Autoconverted job legacy-manila-test-image-build from old job gate-manila-test-image-build
3 roles:
4 - bindep
5
6 tasks:
7
8 - name: Ensure legacy workspace directory
9 file:
10 path: '{{ ansible_user_dir }}/workspace'
11 state: directory
12
13 - shell:
14 cmd: |
15 set -e
16 set -x
17 CLONEMAP=`mktemp`
18 function cleanup {
19 # In cases where zuul-cloner is aborted during a git
20 # clone operation, git will remove the git work tree in
21 # its cleanup. The work tree in these jobs is the
22 # workspace directory, which means that subsequent
23 # jenkins post-build actions can not run because the
24 # workspace has been removed.
25 # To reduce the likelihood of this having an impact,
26 # recreate the workspace directory if needed
27 mkdir -p $WORKSPACE
28 rm -f $CLONEMAP
29 }
30 trap cleanup EXIT
31 cat > $CLONEMAP << EOF
32 clonemap:
33 - name: $ZUUL_PROJECT
34 dest: .
35 EOF
36 /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
37 git://git.openstack.org $ZUUL_PROJECT
38 executable: /bin/bash
39 chdir: '{{ ansible_user_dir }}/workspace'
40 environment: '{{ zuul | zuul_legacy_vars }}'
41
42 - shell:
43 cmd: |
44 set -e
45 set -x
46 ./run-buildroot.sh
47 executable: /bin/bash
48 chdir: '{{ ansible_user_dir }}/workspace'
49 environment: '{{ zuul | zuul_legacy_vars }}'