X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Ffunctest%2Fxtesting.yaml;h=920efde7986f334f3ebc3133bec0bf43d55c9a3d;hb=9a7b3fa13b257d0041b15d3b2c6657d2eaeb71cb;hp=d5f3ebc960a17b6c5083939de3b60a57d5cdb8ff;hpb=ce195a0ef6b822ccfbed191ab125cd915af28e77;p=releng.git diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml index d5f3ebc96..920efde79 100644 --- a/jjb/functest/xtesting.yaml +++ b/jjb/functest/xtesting.yaml @@ -15,37 +15,37 @@ from: build_args: branch: master - node: xtesting + node: opnfv-build dependency: 3.17 - 2023.1: from: build_args: branch: stable/2023.1 - node: xtesting + node: opnfv-build dependency: 3.17 - zed: from: build_args: branch: stable/zed - node: xtesting + node: opnfv-build dependency: 3.16 - yoga: from: build_args: branch: stable/yoga - node: xtesting + node: opnfv-build dependency: 3.16 - xena: from: build_args: branch: stable/xena - node: xtesting + node: opnfv-build dependency: 3.14 - wallaby: from: build_args: branch: stable/wallaby - node: xtesting + node: opnfv-build dependency: 3.13 - xtesting-jobs: &xtesting-jobs @@ -502,7 +502,7 @@ python3.9 python3.9-dev python3.9-distutils \ python3.8 python3.8-dev python3.8-distutils \ python3-pip enchant-2 -y - sudo pip3 install tox tox-pip-version + sudo pip3 install tox tox @@ -834,6 +834,49 @@ jobs: - 'xtesting-{repo}-{container}-{tag}-grype' +- builder: + name: xtesting-sbom + builders: + - shell: | + sudo apt-get -o DPkg::Lock::Timeout=300 update && \ + sudo DEBIAN_FRONTEND=noninteractive apt-get \ + -o DPkg::Lock::Timeout=300 install curl -y + + sudo mkdir -p ~/.docker + curl -sSfL https://raw.githubusercontent.com/docker/sbom-cli-plugin/main/install.sh | sudo sh -s -- + if [ "{repo}" = "_" ]; then + image={container}:{tag} + elif [ "{port}" = "None" ]; then + image={repo}/{container}:{tag} + else + image={repo}:{port}/{container}:{tag} + fi + sudo docker sbom $image + +- job-template: + name: 'xtesting-{repo}-{container}-{tag}-sbom' + triggers: + - timed: '@daily' + parameters: + - xtesting-node: + node: '{node}' + builders: + - xtesting-sbom: + <<: *xtesting-containers + publishers: + - email-ext: + failure: false + first-failure: true + fixed: true + recipients: cedric.ollivier@orange.com + +- project: + name: 'xtesting-opnfv-xtesting-sbom' + <<: *xtesting-params + container: 'xtesting' + jobs: + - 'xtesting-{repo}-{container}-{tag}-sbom' + - project: name: 'xtesting' <<: *xtesting-params @@ -875,3 +918,15 @@ - last-failure - last-duration regex: (?!xtesting-pi)^xtesting-[a-z-0-9.]+-grype$ + +- view: + name: xtesting-sbom + view-type: list + columns: + - status + - weather + - job + - last-success + - last-failure + - last-duration + regex: (?!xtesting-pi)^xtesting-[a-z-0-9.]+-sbom$