Add generate cookiecutter script-oriented pipeline
Change-Id: I78fdf529be57ddfa6a26007c727a608097fd5f9c
diff --git a/jenkins/client/job/salt-models/generate-auto.yml b/jenkins/client/job/salt-models/generate-auto.yml
new file mode 100644
index 0000000..b1bc0ca
--- /dev/null
+++ b/jenkins/client/job/salt-models/generate-auto.yml
@@ -0,0 +1,44 @@
+parameters:
+ jenkins:
+ client:
+ job_template:
+ generate-salt-model:
+ name: generate-salt-model-{{cookiecutter_template}}
+ param:
+ cookiecutter_template:
+ - separated-products-auto
+ template:
+ type: workflow-scm
+ concurrent: true
+ display_name: "Generate reclass cluster {{cookiecutter_template}} automatically"
+ scm:
+ type: git
+ url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
+ credentials: "jenkins-mk"
+ script: generate-cookiecutter-products-auto.groovy
+ param:
+ COOKIECUTTER_TEMPLATE_URL:
+ type: string
+ default: "git@github.com:Mirantis/mk2x-cookiecutter-reclass-model.git"
+ COOKIECUTTER_TEMPLATE_CREDENTIALS:
+ type: string
+ default: github-credentials
+ COOKIECUTTER_TEMPLATE_BRANCH:
+ type: string
+ default: master
+ COOKIECUTTER_TEMPLATE_PATH:
+ type: string
+ default: "./"
+ COOKIECUTTER_TEMPLATE_CONTEXT:
+ type: text
+ RECLASS_MODEL_URL:
+ type: string
+ RECLASS_MODEL_CREDENTIALS:
+ type: string
+ default: gerrit
+ RECLASS_MODEL_BRANCH:
+ type: string
+ default: master
+ EMAIL_ADDRESS:
+ type: string
+ default: master
\ No newline at end of file
diff --git a/jenkins/client/job/salt-models/init.yml b/jenkins/client/job/salt-models/init.yml
index 7e5039a..9da1a34 100644
--- a/jenkins/client/job/salt-models/init.yml
+++ b/jenkins/client/job/salt-models/init.yml
@@ -2,6 +2,7 @@
- system.jenkins.client.job.salt-models.git-mirrors
- system.jenkins.client.job.salt-models.tests
- system.jenkins.client.job.salt-models.generate
+ - system.jenkins.client.job.salt-models.generate-auto
parameters:
_param:
salt_formulas_branches: master