Skip to content

Commit

Permalink
add optional ci test vars, replace DELAY_START with DOCKER_LOGS_TIMEO…
Browse files Browse the repository at this point in the history
…UT for backwards compatibility
  • Loading branch information
aptalca committed May 8, 2024
1 parent 79067f8 commit 6780d9e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion roles/generate-jenkins/templates/Jenkinsfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,20 @@ pipeline {
--shm-size=1gb \
-v /var/run/docker.sock:/var/run/docker.sock \
-e IMAGE=\"${IMAGE}\" \
-e DELAY_START=\"${CI_DELAY}\" \
{% if repo_vars | select('regex', 'CI_SBOM_TIMEOUT') %}
-e SBOM_TIMEOUT=\"${CI_SBOM_TIMEOUT}\" \
{% endif %}
{% if repo_vars | select('regex', 'CI_WEB_SCREENSHOT_TIMEOUT') %}
-e WEB_SCREENSHOT_TIMEOUT=\"${CI_WEB_SCREENSHOT_TIMEOUT}\" \
{% endif %}
{% if repo_vars | select('regex', 'CI_SCREENSHOT_DELAY') %}
-e SCREENSHOT_DELAY=\"${CI_SCREENSHOT_DELAY}\" \
{% endif %}
{% if repo_vars | select('regex', 'CI_DOCKER_LOGS_TIMEOUT') %}
-e DOCKER_LOGS_TIMEOUT=\"${CI_DOCKER_LOGS_TIMEOUT}\" \
{% elif repo_vars | select('regex', 'CI_DELAY') %}
-e DOCKER_LOGS_TIMEOUT=\"${CI_DELAY}\" \
{% endif %}
-e TAGS=\"${CI_TAGS}\" \
-e META_TAG=\"${META_TAG}\" \
-e PORT=\"${CI_PORT}\" \
Expand Down

0 comments on commit 6780d9e

Please sign in to comment.