summaryrefslogtreecommitdiffstats
path: root/jjb/integration
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/integration')
-rw-r--r--jjb/integration/integration-macros.yaml20
-rw-r--r--jjb/integration/integration-templates.yaml26
2 files changed, 46 insertions, 0 deletions
diff --git a/jjb/integration/integration-macros.yaml b/jjb/integration/integration-macros.yaml
index 10b0437ab..89e83c268 100644
--- a/jjb/integration/integration-macros.yaml
+++ b/jjb/integration/integration-macros.yaml
@@ -31,6 +31,14 @@
default: '{html-files}'
description: 'File name to be used by HTML publisher plugin to produce the report'
+- parameter:
+ name: integration-terraform-version
+ parameters:
+ - string:
+ name: TERRAFORM_VERSION
+ default: '{terraform-version}'
+ description: 'Terraform version to install on minion'
+
- builder:
name: integration-install-robotframework
builders:
@@ -69,6 +77,18 @@
mkdir -p ~/.ssh
- builder:
+ name: integration-install-terraform
+ builders:
+ - shell: |
+ #!/bin/bash
+ set -ex
+ cd /tmp
+ wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
+ unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip
+ sudo mv terraform /usr/local/bin/
+ terraform version
+
+- builder:
name: integration-docker-compose-logs
builders:
- shell: !include-raw: shell/docker-compose-logs.sh
diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml
index 622d523a7..42c069764 100644
--- a/jjb/integration/integration-templates.yaml
+++ b/jjb/integration/integration-templates.yaml
@@ -104,3 +104,29 @@
name: '{project-name}-{stream}-{subproject}-tox-verify'
id: integration-tox-verify
description: 'Job intended for running tox'
+
+- job-template:
+ <<: *tox_verify_boilerplate
+ name: '{project-name}-{stream}-{subproject}-terraform-verify'
+ terraform-version: 0.13.2
+ python-version: python3
+ id: integration-terraform-verify
+ description: 'Job intended for validating terraform modules'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ stream: '{stream}'
+ branch: '{branch}'
+ - lf-infra-tox-parameters:
+ tox-dir: '{tox-dir}'
+ tox-envs: '{tox-envs}'
+ - integration-terraform-version:
+ terraform-version: '{terraform-version}'
+
+ builders:
+ - integration-install-terraform
+ - lf-infra-tox-install:
+ python-version: '{python-version}'
+ - lf-infra-tox-run:
+ parallel: 'false'