diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-05-11 20:31:47 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-05-11 20:31:47 +0200 |
commit | 01de76c507d17df41923f5bd72d555350dbd3a8c (patch) | |
tree | ce7ed244971218ba901cd3ca0db243f7fb6117be /jjb/functest | |
parent | b859be6ed999991ffae5a8401cd05889853b5243 (diff) |
Publish trivy jobs
Change-Id: I24d2058d647e4b9591cf17521790cfc444bdf4f1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest')
-rw-r--r-- | jjb/functest/xtesting-ci-docker.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/jjb/functest/xtesting-ci-docker.yaml b/jjb/functest/xtesting-ci-docker.yaml index 392bafab4..dae9ac67a 100644 --- a/jjb/functest/xtesting-ci-docker.yaml +++ b/jjb/functest/xtesting-ci-docker.yaml @@ -58,6 +58,47 @@ jobs: - xtesting-ci-docker-{stream} +- builder: + name: xtesting-ci-docker-trivy + builders: + - shell: | + curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b . + ./trivy image --exit-code 1 {image} + +- trigger: + name: xtesting-ci-docker-trivy-trigger + triggers: + - timed: '@daily' + +- parameter: + name: xtesting-ci-docker-trivy-parameter + parameters: + - label: + name: node + default: 'lf-virtual1' + +- job-template: + name: 'xtesting-ci-docker-trivy-{stream}' + triggers: + - xtesting-ci-docker-trivy-trigger + parameters: + - xtesting-ci-docker-trivy-parameter + builders: + - xtesting-ci-docker-trivy: + image: '{image}' + +- project: + name: 'xtesting-ci-docker-trivy' + stream: + - jenkins-debian-lts-slim: + image: opnfv/xtesting-jenkins:lts-slim + - jenkins-debian-lts-alpine: + image: opnfv/xtesting-jenkins:lts-alpine + - s3www-v0.5.3: + image: opnfv/xtesting-s3www:v0.5.3 + jobs: + - 'xtesting-ci-docker-trivy-{stream}' + - view: name: xtesting-ci-docker view-type: list |