Add packer-image-system.foundation job to jjb

PROD-37197

Change-Id: Ia297ec8520a4f31163c620dcfd1b784b61727a63
diff --git a/jobs/project.yaml b/jobs/project.yaml
index d1cf905..f40d31b 100644
--- a/jobs/project.yaml
+++ b/jobs/project.yaml
@@ -70,4 +70,5 @@
       # - testrail-reporter-gerrit-mcp-ci - can't moved to JJB, unsupported parameters
       - release-artifact-checker
       - cc_table_jjb
+      - packer-image-system.foundation
 ...
\ No newline at end of file
diff --git a/jobs/templates/packer-image-system.foundation.yml b/jobs/templates/packer-image-system.foundation.yml
new file mode 100644
index 0000000..8cd2af0
--- /dev/null
+++ b/jobs/templates/packer-image-system.foundation.yml
@@ -0,0 +1,86 @@
+- job-template:

+    project-type: pipeline

+    description: '{job-description}'

+    concurrent: false

+    disabled: false

+    name: packer-image-system.foundation

+    parameters:

+    - string:

+        name: IMAGE_NAME

+        default: system.foundation

+        description: 'Name of the resulting qcow2 image'

+        trim: 'false'

+    - string:

+        name: BUILD_CONFIG_DRIVE_PATH

+        default: tcp_tests/templates/_packer/foundation/config-drive

+        description: 'Relative path in tcp-qa to the directory with meta-data and user-data files'

+        trim: 'false'

+    - string:

+        name: BUILD_PACKER_CONFIG_PATH

+        default: tcp_tests/templates/_packer/foundation/packer.json

+        description: 'Relative path in tcp-qa to the file with packer config (JSON)'

+        trim: 'false'

+    - string:

+        name: BASE_IMAGE_URL

+        default: http://cloud-images.ubuntu.com/releases/xenial/release-20180306/ubuntu-16.04-server-cloudimg-amd64-disk1.img

+        description: 'Base image to build a new image'

+        trim: 'false'

+    - string:

+        name: BASE_IMAGE_MD5

+        default: 566efef1d6f12e7d3a994c2405bdb642

+        description: 'Base image MD5 checksum'

+        trim: 'false'

+    - string:

+        name: PACKER_URL

+        default: https://releases.hashicorp.com/packer/1.4.1/packer_1.4.1_linux_amd64.zip

+        description: 'URL to the zip archive with packer binary, see https://releases.hashicorp.com/packer/'

+        trim: 'false'

+    - string:

+        name: PACKER_ZIP_MD5

+        default: 35cc6dd2a2b2e50e76090197d7c12a90

+        description: 'MD5 of the zip archive with packer binary'

+        trim: 'false'

+    - string:

+        name: OS_AUTH_URL

+        default: https://keystone.ic-eu.ssl.mirantis.net/v3

+        description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'

+        trim: 'false'

+    - string:

+        name: OS_PROJECT_NAME

+        default: sre-team

+        description: ''

+        trim: 'false'

+    - string:

+        name: OS_USER_DOMAIN_NAME

+        default: ldap_mirantis

+        description: 'OpenStack user domain name'

+        trim: 'false'

+    - string:

+        name: OS_CREDENTIALS

+        default: sre-qa-ci-eu

+        description: 'Jenkins credentials ID with username and password to create a heat stack in OpenStack'

+        trim: 'false'

+    - bool:

+        name: UPLOAD_IMAGE_TO_GLANCE

+        default: True

+        description: 'If True: upload image to glance; if False: store as an artifact'

+        trim: 'false'

+    - string:

+        name: TCP_QA_REFS

+        default:

+        description: |

+          Example: refs/changes/89/411189/36

+          (for now - only one reference allowed)

+        trim: 'false'

+

+    pipeline-scm:

+      lightweight-checkout: false

+      scm:

+      - git:

+          branches:

+          - FETCH_HEAD

+          refspec: ${{TCP_QA_REFS}}

+          url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa

+      script-path: jobs/pipelines/packer-image-create.groovy

+    logrotate:

+      daysToKeep: 30
\ No newline at end of file