Add a job that builds test_server.bin

Add a playbook and a periodic job that build and publish the
test_server.bin application to tarballs.o.o

Change-Id: Ib9cd34586578e4a2193d19b9b5530a9a7ab7341e
Signed-off-by: Gregory Thiemonge <gthiemon@redhat.com>
This commit is contained in:
Gregory Thiemonge
2026-01-12 10:14:40 +01:00
parent 1ebfca0115
commit e437e22ee3
4 changed files with 56 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
- hosts: all
name: Copy image
tasks:
- synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ ansible_user_dir }}/test-server"
verify_host: true
rsync_opts:
- "--exclude=/*/*/"
+20
View File
@@ -0,0 +1,20 @@
- hosts: all
tasks:
- name: Install dependencies
package:
name:
- golang
state: present
become: yes
- name: Ensure artifacts directory exists
file:
name: "{{ ansible_user_dir }}/test-server"
state: directory
- name: Build test_server.bin
shell: |
source_dir={{ ansible_user_dir }}/src/opendev.org/openstack/octavia-tempest-plugin
dest_dir={{ ansible_user_dir }}/test-server
CGO_ENABLED=0 GOOS=linux go build \
-a -ldflags '-s -w -extldflags -static' \
-o ${dest_dir}/test_server-{{ test_server_arch }}.{{ zuul.branch }}.bin \
${source_dir}/octavia_tempest_plugin/contrib/test_server/test_server.go
+23
View File
@@ -1064,6 +1064,29 @@
load_balancer:
RBAC_test_type: keystone_default_roles
- job:
name: publish-openstack-octavia-tempest-plugin-test-server
parent: publish-openstack-artifacts
description: |
Publish octavia-test-plugin test_server.bin application to tarballs.o.o.
run: playbooks/test-server-build/run.yaml
post-run: playbooks/test-server-build/post.yaml
required-projects:
- openstack/octavia-tempest-plugin
vars:
test_server_arch: x86_64
- job:
name: octavia-test-server-build
parent: base
description: |
Builds octavia-test-plugin test_server.bin application.
run: playbooks/test-server-build/run.yaml
required-projects:
- openstack/octavia-tempest-plugin
vars:
test_server_arch: x86_64
######### Third party jobs ##########
- job:
+3
View File
@@ -72,3 +72,6 @@
- octavia-v2-dsvm-tls-barbican-stable-2025-2
- octavia-v2-dsvm-tls-barbican-stable-2025-1
- octavia-v2-dsvm-tls-barbican-stable-2024-2
periodic:
jobs:
- publish-openstack-octavia-tempest-plugin-test-server