Publish Xtesting 2024.2 65/74665/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 18 Dec 2024 15:10:24 +0000 (16:10 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 18 Dec 2024 15:10:24 +0000 (16:10 +0100)
Change-Id: Id488efc487440111622ca86f062455fc450717a7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
.travis.yml
ansible/site.gate.yml
ansible/site.yml
build.sh
docker/core/Dockerfile
elements/xtesting/install.d/16-xtesting
tox.ini

index f402f11..f142c6b 100644 (file)
@@ -43,5 +43,5 @@ jobs:
       script: >
         sudo manifest-tool push from-args \
           --platforms linux/amd64,linux/arm,linux/arm64 \
-          --template ${DOCKER_USERNAME}/xtesting:ARCH-latest \
-          --target ${DOCKER_USERNAME}/xtesting:latest
+          --template ${DOCKER_USERNAME}/xtesting:ARCH-2024.2 \
+          --target ${DOCKER_USERNAME}/xtesting:2024.2
index 57b49d2..88db5be 100644 (file)
@@ -6,8 +6,8 @@
       gerrit_project: functest-xtesting
       git_url: https://gerrit.opnfv.org/gerrit/functest-xtesting
       docker_tags:
-        - latest:
-            branch: master
+        - '2024.2':
+            branch: stable/2024.2
             dependency: '3.20'
       builds:
         dependency:
index a212472..8b40f2d 100644 (file)
@@ -2,6 +2,9 @@
 - hosts: 127.0.0.1
   roles:
     - role: collivier.xtesting
+      docker_tags:
+        - '2024.2':
+            branch: stable/2024.2
       suites:
         - container: xtesting
           tests:
index 9f14b6e..7cfe384 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -16,7 +16,7 @@ amd64_dirs=${amd64_dirs-"\
 docker/core"}
 arm_dirs=${arm_dirs-${amd64_dirs}}
 arm64_dirs=${arm64_dirs-${amd64_dirs}}
-tag=${BRANCH:-latest}
+tag=${BRANCH:-stable/2024.2}
 image="xtesting"
 build_opts=(--pull=true --no-cache --force-rm=true)
 
@@ -25,15 +25,15 @@ for arch in ${arch}; do
         find . -name Dockerfile -exec sed -i \
             -e "s|alpine:3.17|arm64v8/alpine:3.17|g" {} +
         find . -name Dockerfile -exec sed -i \
-            -e "s|opnfv/xtesting|${repo}/xtesting:arm64-${tag}|g" {} +
+            -e "s|opnfv/xtesting:2024.2|${repo}/xtesting:arm64-${tag}|g" {} +
     elif [[ ${arch} == arm ]]; then
         find . -name Dockerfile -exec sed -i \
             -e "s|alpine:3.17|arm32v6/alpine:3.17|g" {} +
         find . -name Dockerfile -exec sed -i \
-            -e "s|opnfv/xtesting|${repo}/xtesting:arm-${tag}|g" {} +
+            -e "s|opnfv/xtesting:2024.2|${repo}/xtesting:arm-${tag}|g" {} +
     else
         find . -name Dockerfile -exec sed -i \
-            -e "s|opnfv/xtesting|${repo}/xtesting:amd64-${tag}|g" {} +
+            -e "s|opnfv/xtesting:2024.2|${repo}/xtesting:amd64-${tag}|g" {} +
     fi
     dirs=${arch}_dirs
     for dir in ${!dirs}; do
index 409cd2d..f83d1d6 100644 (file)
@@ -1,7 +1,7 @@
 FROM alpine:3.20
 
-ARG BRANCH=master
-ARG OPENSTACK_TAG=master
+ARG BRANCH=stable/2024.2
+ARG OPENSTACK_TAG=stable/2024.2
 
 RUN apk -U upgrade && \
     apk --no-cache add --update python3 py3-pip py3-wheel bash git mailcap libxml2 libxslt ansible && \
index d380855..c7b7de4 100644 (file)
@@ -1,8 +1,11 @@
 #!/bin/bash
 
 download-frozen-image-v2.sh /data/docker/xtesting \
-  opnfv/xtesting:latest
-git clone https://git.opnfv.org/functest-xtesting /home/debian/functest-xtesting
+  opnfv/xtesting:2024.2
+git init /home/debian/functest-xtesting && \
+(cd /home/debian/functest-xtesting && \
+  git fetch --tags https://git.opnfv.org/functest-xtesting stable/2024.2 && \
+  git checkout FETCH_HEAD) && \
 chown -R 1000:1000 /home/debian/functest-xtesting
 
 exit 0
diff --git a/tox.ini b/tox.ini
index c45a924..87fcb75 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -6,7 +6,7 @@ skipsdist = True
 usedevelop = True
 deps =
   -c{toxinidir}/upper-constraints.txt
-  -chttps://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
+  -chttps://opendev.org/openstack/requirements/raw/branch/stable/2024.2/upper-constraints.txt
   -r{toxinidir}/requirements.txt
   -r{toxinidir}/test-requirements.txt
 install_command = pip install {opts} {packages}